History

fix for double tonemapping in mirrors

HifiExperiments committed 1 year ago

Commit c0627731 parent a3e8e3a1 file · +4 −1Browse files

Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/ToneMapAndResampleTask.cpp+4−1
@@ -79,7 +79,10 @@ void ToneMapAndResample::run(const RenderContextPointer& renderContext, const In · 78 unmodified lines
79 tonemapping = tonemappingStage->getElement(tonemappingFrame->_elements.front());79 tonemapping = tonemappingStage->getElement(tonemappingFrame->_elements.front());
80 }80 }
81 81
82 if (_debug) {82 if (args->_mirrorDepth > 0) {
83 setCurve(TonemappingCurve::SRGB);
84 setExposure(0.0f);
85 } else if (_debug) {
83 setCurve(_debugCurve);86 setCurve(_debugCurve);
84 setExposure(_debugExposure);87 setExposure(_debugExposure);
85 } else if (tonemapping) {88 } else if (tonemapping) {