Skip to content

Commit

Permalink
Fix OpenGL uniform upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ApoorvaJ committed Sep 18, 2023
1 parent 9d7dedc commit 1cc0004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXView/RenderPipelineGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ mx::ImagePtr GLRenderPipeline::convolveEnvironment()
// Bind other uniforms
program->bindUniform(mx::HW::CONVOLUTION_MIP_LEVEL, mx::Value::createValue(i));
const mx::Matrix44 yRotationPI = mx::Matrix44::createScale(mx::Vector3(-1, 1, -1));
program->bindUniform(mx::HW::T_ENV_MATRIX, mx::Value::createValue(yRotationPI));
program->bindUniform(mx::HW::T_ENV_RADIANCE_MIPS, mx::Value::createValue<int>(numMips));
program->bindUniform(mx::HW::ENV_MATRIX, mx::Value::createValue(yRotationPI));
program->bindUniform(mx::HW::ENV_RADIANCE_MIPS, mx::Value::createValue<int>(numMips));

_viewer->renderScreenSpaceQuad(material);

Expand Down

0 comments on commit 1cc0004

Please sign in to comment.