mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-27 15:29:03 +00:00
Optimization: Allow finer bloom quality settings. Also set default value to 50%, good compromise between speed and quality.
This commit is contained in:
parent
a088c2455e
commit
29e8592582
@ -57,7 +57,7 @@ Item{
|
|||||||
property real motion_blur: 0.40
|
property real motion_blur: 0.40
|
||||||
property real bloom_strength: 0.65
|
property real bloom_strength: 0.65
|
||||||
|
|
||||||
property real bloom_quality: 1.0
|
property real bloom_quality: 0.5
|
||||||
|
|
||||||
property real chroma_color: 0.0
|
property real chroma_color: 0.0
|
||||||
property real saturation_color: 0.0
|
property real saturation_color: 0.0
|
||||||
|
@ -111,37 +111,17 @@ Tab{
|
|||||||
GridLayout{
|
GridLayout{
|
||||||
id: bloomQualityContainer
|
id: bloomQualityContainer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
columns: 3
|
|
||||||
property alias valsIndex: bloomQualitySlider.value
|
|
||||||
property var vals: [0.25, 0.50, 1.00]
|
|
||||||
property var valsStrings: [
|
|
||||||
qsTr("Low"),
|
|
||||||
qsTr("Medium"),
|
|
||||||
qsTr("High")
|
|
||||||
]
|
|
||||||
|
|
||||||
onValsIndexChanged: appSettings.bloom_quality = vals[valsIndex];
|
|
||||||
|
|
||||||
Text{text: qsTr("Bloom Quality")}
|
Text{text: qsTr("Bloom Quality")}
|
||||||
Slider{
|
Slider{
|
||||||
id: bloomQualitySlider
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onValueChanged: parent.valsIndex = value;
|
id: bloomSlider
|
||||||
stepSize: 1
|
onValueChanged: appSettings.bloom_quality = value;
|
||||||
Component.onCompleted: {
|
value: appSettings.bloom_quality
|
||||||
minimumValue = 0;
|
stepSize: 0.10
|
||||||
maximumValue = 2;
|
Component.onCompleted: minimumValue = 0.3 //Without this value gets set to 0.5
|
||||||
value = parent.vals.indexOf(appSettings.bloom_quality);
|
|
||||||
}
|
|
||||||
Connections{
|
|
||||||
target: appSettings
|
|
||||||
onBloom_qualityChanged:
|
|
||||||
bloomQualityContainer.valsIndex = bloomQualityContainer.vals.indexOf(appSettings.bloom_quality);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Text{
|
|
||||||
text: parent.valsStrings[parent.valsIndex];
|
|
||||||
}
|
}
|
||||||
|
Text{text: Math.round(bloomSlider.value * 100) + "%"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GroupBox{
|
GroupBox{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user