Adding the full code path, starting debugging the problems in hmd,

This commit is contained in:
samcake 2017-09-05 18:17:27 -07:00
parent e70f261de4
commit 3e1c2bdb48

View file

@ -34,25 +34,26 @@ Rectangle {
Row { Row {
spacing: 10 spacing: 10
id: fxaaOnOff
var debugFXAA = false property bool debugFXAA: false
HifiControls.Button { HifiControls.Button {
text: { text: {
if (debugFXAA) { if (fxaaOnOff.debugFXAA) {
return "FXAA" return "FXAA"
} else { } else {
return "TAA" return "TAA"
} }
} }
onClicked: { onClicked: {
if (debugFXAA) { fxaaOnOff.debugFXAA = !fxaaOnOff.debugFXAA
Render.getConfig("RenderMainView.JitterCam").stop(); if (fxaaOnOff.debugFXAA) {
Render.getConfig("RenderMainView.JitterCam").none();
Render.getConfig("RenderMainView.Antialiasing").debugFXAAX = 0; Render.getConfig("RenderMainView.Antialiasing").debugFXAAX = 0;
} else { } else {
Render.getConfig("RenderMainView.JitterCam").run(); Render.getConfig("RenderMainView.JitterCam").play();
Render.getConfig("RenderMainView.Antialiasing").debugFXAAX = 1.0; Render.getConfig("RenderMainView.Antialiasing").debugFXAAX = 1.0;
} }
debugFXAA = !debugFXAA
} }
} }
} }