summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 14:53:07 +0000
committerMichael Pohoreski <ptolemy@lindenlab.com>2022-06-23 14:53:07 +0000
commitd67e1f4f91e4b206e36343ee31fa4877dd58c01c (patch)
tree0caf93cd03728bb4c5fbd52fb339531c765c6676 /indra/newview/pipeline.cpp
parent36d9fa90150d30a0a0851cc0da87531014c1d93d (diff)
parent6540b4c480d1d4b4c8342a0d093d09f525485659 (diff)
Merged DRTVWR-559 into SL-17274_view_dir
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 1981f48500..030c7b450d 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -9211,10 +9211,22 @@ void LLPipeline::unbindDeferredShader(LLGLSLShader &shader)
void LLPipeline::bindReflectionProbes(LLGLSLShader& shader)
{
S32 channel = shader.enableTexture(LLShaderMgr::REFLECTION_PROBES, LLTexUnit::TT_CUBE_MAP_ARRAY);
+ bool bound = false;
if (channel > -1 && mReflectionMapManager.mTexture.notNull())
{
- // see comments in class2/deferred/softenLightF.glsl for what these uniforms mean
mReflectionMapManager.mTexture->bind(channel);
+ bound = true;
+ }
+
+ channel = shader.enableTexture(LLShaderMgr::IRRADIANCE_PROBES, LLTexUnit::TT_CUBE_MAP_ARRAY);
+ if (channel > -1 && mReflectionMapManager.mIrradianceMaps.notNull())
+ {
+ mReflectionMapManager.mIrradianceMaps->bind(channel);
+ bound = true;
+ }
+
+ if (bound)
+ {
mReflectionMapManager.setUniforms();
F32* m = gGLModelView;