summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolbump.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-05-19 22:24:41 -0500
committerDave Parks <davep@lindenlab.com>2022-05-19 22:24:41 -0500
commit3564b24e2a90e0772c37185cc5dcedca29d62ab8 (patch)
tree9c0e7fa9d747d7bca7b25352bf8e28c875163e77 /indra/newview/lldrawpoolbump.cpp
parent02fb1bd6103cad5538fc170e015f4329f3545542 (diff)
SL-17286 Reflection probe alpha/fullbright support.
Diffstat (limited to 'indra/newview/lldrawpoolbump.cpp')
-rw-r--r--indra/newview/lldrawpoolbump.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp
index 0df0137b7a..3fe3896aa2 100644
--- a/indra/newview/lldrawpoolbump.cpp
+++ b/indra/newview/lldrawpoolbump.cpp
@@ -460,6 +460,11 @@ void LLDrawPoolBump::beginFullbrightShiny()
LLVector4 vec4(vec, gShinyOrigin.mV[3]);
shader->uniform4fv(LLViewerShaderMgr::SHINY_ORIGIN, 1, vec4.mV);
+ if (shader->mFeatures.hasReflectionProbes)
+ {
+ gPipeline.bindReflectionProbes(*shader);
+ }
+
// Make sure that texture coord generation happens for tex unit 1, as that's the one we use for
// the cube map in the one pass shiny shaders
gGL.getTexUnit(1)->disable();
@@ -520,6 +525,10 @@ void LLDrawPoolBump::endFullbrightShiny()
if( cube_map )
{
cube_map->disable();
+ if (shader->mFeatures.hasReflectionProbes)
+ {
+ gPipeline.unbindReflectionProbes(*shader);
+ }
shader->unbind();
}