mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 20:36:15 +02:00
54 lines
1.4 KiB
QML
54 lines
1.4 KiB
QML
//
|
|
// main.qml
|
|
// examples/utilities/tools/render
|
|
//
|
|
// Created by Zach Pomerantz on 2/8/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
|
|
|
|
Column {
|
|
spacing: 8
|
|
Column {
|
|
id: debug
|
|
property var config: Render.getConfig("DebugDeferredBuffer")
|
|
|
|
function setDebugMode(mode) {
|
|
debug.config.enabled = (mode != -1);
|
|
debug.config.mode = mode;
|
|
}
|
|
|
|
Label { text: qsTr("Debug Buffer") }
|
|
ExclusiveGroup { id: bufferGroup }
|
|
Repeater {
|
|
model: [
|
|
"Off",
|
|
"Depth",
|
|
"Albedo",
|
|
"Normal",
|
|
"Roughness",
|
|
"Metallic",
|
|
"Emissive",
|
|
"Unlit",
|
|
"Occlusion",
|
|
"Lightmap",
|
|
"Lighting",
|
|
"Shadow",
|
|
"Pyramid Depth",
|
|
"Ambient Occlusion",
|
|
"Ambient Occlusion Blurred",
|
|
"Custom Shader"
|
|
]
|
|
RadioButton {
|
|
text: qsTr(modelData)
|
|
exclusiveGroup: bufferGroup
|
|
checked: index == 0
|
|
onCheckedChanged: if (checked) debug.setDebugMode(index - 1);
|
|
}
|
|
}
|
|
}
|
|
}
|