Skip to content
Snippets Groups Projects
Commit 0e5a7b96 authored by Rye Mutt's avatar Rye Mutt :bread: Committed by RobotRoss
Browse files

Import: 71091 sl 20703 pbr masked alpha gradient textures change with viewing angle

parent 50e6a153
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,14 @@ void LLFetchedGLTFMaterial::bind(LLViewerTexture* media_tex)
{
// dividing the alpha cutoff by transparency here allows the shader to compare against
// the alpha value of the texture without needing the transparency value
min_alpha = mAlphaCutoff/mBaseColor.mV[3];
if (mBaseColor.mV[3] > 0.f)
{
min_alpha = mAlphaCutoff / mBaseColor.mV[3];
}
else
{
min_alpha = 1024.f;
}
}
shader->uniform1f(LLShaderMgr::MINIMUM_ALPHA, min_alpha);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment