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
7979 tonemapping = tonemappingStage->getElement(tonemappingFrame->_elements.front());
8080 }
8181
82− if (_debug) {
82+ if (args->_mirrorDepth > 0) {
83+ setCurve(TonemappingCurve::SRGB);
84+ setExposure(0.0f);
85+ } else if (_debug) {
8386 setCurve(_debugCurve);
8487 setExposure(_debugExposure);
8588 } else if (tonemapping) {