Skip to content

Commit

Permalink
Call the lazy convolver in the OpenGL path
Browse files Browse the repository at this point in the history
  • Loading branch information
ApoorvaJ committed Sep 18, 2023
1 parent aaeb75c commit dd307fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/MaterialXView/RenderPipelineGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ void GLRenderPipeline::renderFrame(void*, int shadowMapSize, const char* dirLigh
float lightRotation = _viewer->_lightRotation;
auto& searchPath = _viewer->_searchPath;
auto& geometryHandler = _viewer->_geometryHandler;

if (lightHandler->getUsePreConvolvedEnvLighting())
{
convolveEnvironment();
}

// Initialize OpenGL state
glDisable(GL_BLEND);
Expand Down

0 comments on commit dd307fe

Please sign in to comment.