// // 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: ambientOcclusion property var config: Render.getConfig("AmbientOcclusion") Label { text: qsTr("Ambient Occlusion") } // TODO: Add gpuTimer CheckBox { text: qsTr("Dithering"); checked: ambientOcclusion.config.ditheringEnabled } Repeater { model: [ "Resolution Level:resolutionLevel:4", "Obscurance Level:obscuranceLevel:1", "Radius:radius:2", "Falloff Bias:falloffBias:0.2", "Edge Sharpness:edgeSharpness:1", "Blur Radius:blurRadius:6", "Blur Deviation:blurDeviation:3" ] ConfigSlider { label: qsTr(modelData.split(":")[0]) config: ambientOcclusion.config property: modelData.split(":")[1] max: modelData.split(":")[2] } } Repeater { model: [ "Samples:numSamples:32", "Spiral Turns:numSpiralTurns:30:" ] ConfigSlider { label: qsTr(modelData.split(":")[0]) integral: true config: ambientOcclusion.config property: modelData.split(":")[1] max: modelData.split(":")[2] } } } }