mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 18:48:32 +02:00
adding the checkbox to show the meta bounds from the debugDeferredLighting.js
This commit is contained in:
parent
69f9053e61
commit
5ed3b48f9d
2 changed files with 13 additions and 3 deletions
|
@ -13,7 +13,7 @@ var qml = Script.resolvePath('deferredLighting.qml');
|
|||
var window = new OverlayWindow({
|
||||
title: 'Lighting',
|
||||
source: qml,
|
||||
width: 400, height:220,
|
||||
width: 400, height:280,
|
||||
});
|
||||
window.setPosition(Window.innerWidth - 420, 50);
|
||||
window.closed.connect(function() { Script.stop(); });
|
||||
|
|
|
@ -74,7 +74,7 @@ Column {
|
|||
Column {
|
||||
spacing: 10
|
||||
Repeater {
|
||||
model: [ "Tone Mapping exposure:ToneMapping:exposure:5.0:-5.0"
|
||||
model: [ "Tone Mapping Exposure:ToneMapping:exposure:5.0:-5.0"
|
||||
]
|
||||
ConfigSlider {
|
||||
label: qsTr(modelData.split(":")[0])
|
||||
|
@ -88,7 +88,7 @@ Column {
|
|||
|
||||
Row {
|
||||
Label {
|
||||
text: "Debug Framebuffer"
|
||||
text: "Tone Mapping Curve"
|
||||
anchors.left: root.left
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,7 @@ Column {
|
|||
}
|
||||
Row {
|
||||
id: framebuffer
|
||||
spacing: 10
|
||||
|
||||
Label {
|
||||
text: "Debug Framebuffer"
|
||||
|
@ -156,5 +157,14 @@ Column {
|
|||
onCurrentIndexChanged: { framebuffer.setDebugMode(currentIndex) }
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
id: metas
|
||||
CheckBox {
|
||||
text: "Draw Meta Bounds"
|
||||
checked: Render.getConfig("DrawMetaBounds")["enabled"]
|
||||
onCheckedChanged: { Render.getConfig("DrawMetaBounds")["enabled"] = checked }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue