Skip to content
Snippets Groups Projects
Commit 4c2a89b8 authored by Jonathan Kunstwald's avatar Jonathan Kunstwald
Browse files

Undo change to skipped accumulation if output is discarded

parent be31de3b
No related branches found
No related tags found
No related merge requests found
......@@ -425,7 +425,7 @@ void glow::viewer::ViewerRenderer::renderSubview(
for (auto x = 0; x < 3; ++x)
for (auto y = 0; y < 3; ++y)
dis += tg::abs(view[x][y] - subViewData.lastView[x][y]);
if (bSkipOutput || (dis > 0.01f || distance(subViewData.lastPos, camPos) > boundingInfo.diagonal / 5000.f))
if (dis > 0.01f || distance(subViewData.lastPos, camPos) > boundingInfo.diagonal / 5000.f)
{
// Camera changed beyond epsilon, reset accumulation
subViewData.clearAccumBuffer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment