diff options
author | Dave Parks <davep@lindenlab.com> | 2022-11-22 14:59:24 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-11-22 14:59:24 -0600 |
commit | 8bdd71c4e3515d5b63301ab824821879ffb50746 (patch) | |
tree | 8310fb16475d79c6f4457ae5bc6f35dc267d3202 /indra | |
parent | ee1697a3911f521346f6ed8becedcfda048f220a (diff) |
SL-18683 Fix for corruption on alpha blended PBR materials.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/pipeline.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index b59da7ad19..0f348e4bc4 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -8288,6 +8288,12 @@ void LLPipeline::bindLightFunc(LLGLSLShader& shader) { gGL.getTexUnit(channel)->bindManual(LLTexUnit::TT_TEXTURE, mLightFunc); } + + channel = shader.enableTexture(LLShaderMgr::DEFERRED_BRDF_LUT, LLTexUnit::TT_TEXTURE); + if (channel > -1) + { + mPbrBrdfLut.bindTexture(0, channel); + } } void LLPipeline::bindShadowMaps(LLGLSLShader& shader) @@ -8415,12 +8421,6 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, LLRenderTarget* light_ gGL.getTexUnit(channel)->setTextureAddressMode(LLTexUnit::TAM_CLAMP); } - channel = shader.enableTexture(LLShaderMgr::DEFERRED_BRDF_LUT, LLTexUnit::TT_TEXTURE); - if (channel > -1) - { - mPbrBrdfLut.bindTexture(0, channel); - } - #if 0 channel = shader.enableTexture(LLShaderMgr::DEFERRED_DEPTH, deferred_depth_target->getUsage()); if (channel > -1) |