SL-18683 Fix for corruption on alpha blended PBR materials.
parent
ee1697a391
commit
8bdd71c4e3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue