SL-18683 Fix for corruption on alpha blended PBR materials.

meow-7.2.2
Dave Parks 2022-11-22 14:59:24 -06:00
parent ee1697a391
commit 8bdd71c4e3
1 changed files with 6 additions and 6 deletions

View File

@ -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)