Added realtime reflections on the frame. They are a little bit hacky but don't have any impact on performances.

This commit is contained in:
Filippo Scognamiglio
2014-04-05 15:14:52 +02:00
parent 80404ffe89
commit e62ee54aea
10 changed files with 77 additions and 19 deletions
+10
View File
@@ -99,11 +99,21 @@ ApplicationWindow {
columns: 2
Text{text: "Frame texture"}
ComboBox{
id: framescombobox
Layout.fillWidth: true
model: shadersettings.frames_list
currentIndex: shadersettings.frames_index
onCurrentIndexChanged: shadersettings.frames_index = currentIndex
}
CheckBox{
Layout.columnSpan: 2
Layout.fillWidth: true
checked: shadersettings.frame_reflections
text: qsTr("Frame reflections")
onCheckedChanged: shadersettings.frame_reflections = checked
enabled: framescombobox.model.get(framescombobox.currentIndex).reflections
}
Item{Layout.fillHeight: true}
ColorButton{
height: 50