mirror of
https://github.com/overte-org/overte.git
synced 2025-04-27 00:16:21 +02:00
55 lines
1.8 KiB
QML
55 lines
1.8 KiB
QML
//
|
|
// lightClustering.qml
|
|
//
|
|
// Created by Sam Gateau on 9/9/2016
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
import QtQuick 2.5
|
|
import QtQuick.Controls 1.4
|
|
import "configSlider"
|
|
|
|
Column {
|
|
spacing: 8
|
|
Column {
|
|
id: lightClustering
|
|
spacing: 10
|
|
|
|
Column{
|
|
ConfigSlider {
|
|
label: qsTr("Range Near [m]")
|
|
integral: false
|
|
config: Render.getConfig("LightClustering")
|
|
property: "rangeNear"
|
|
max: 20.0
|
|
min: 0.1
|
|
}
|
|
ConfigSlider {
|
|
label: qsTr("Range Far [m]")
|
|
integral: false
|
|
config: Render.getConfig("LightClustering")
|
|
property: "rangeFar"
|
|
max: 500.0
|
|
min: 100.0
|
|
}
|
|
|
|
CheckBox {
|
|
text: "Freeze"
|
|
checked: Render.getConfig("LightClustering")["freeze"]
|
|
onCheckedChanged: { Render.getConfig("LightClustering")["freeze"] = checked }
|
|
}
|
|
CheckBox {
|
|
text: "Draw Grid"
|
|
checked: Render.getConfig("DebugLightClusters")["doDrawGrid"]
|
|
onCheckedChanged: { Render.getConfig("DebugLightClusters")["doDrawGrid"] = checked }
|
|
}
|
|
CheckBox {
|
|
text: "Draw Cluster From Depth"
|
|
checked: Render.getConfig("DebugLightClusters")["doDrawClusterFromDepth"]
|
|
onCheckedChanged: { Render.getConfig("DebugLightClusters")["doDrawClusterFromDepth"] = checked }
|
|
}
|
|
}
|
|
}
|
|
}
|