summaryrefslogtreecommitdiff
path: root/indra/newview/llfetchedgltfmaterial.cpp
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2024-05-15 15:48:58 -0700
committerGitHub <noreply@github.com>2024-05-15 15:48:58 -0700
commiteab232d3ed49bfb1f873e332ff57ec8c311c163b (patch)
treeb07ac60e9dcfbc93a86f7c0755e497978b3bba6e /indra/newview/llfetchedgltfmaterial.cpp
parent6252449cd392918d976f0af0317c44688e052b32 (diff)
parent3cb329d4fa53df9ab1ab371f26a178ef48ae3ca3 (diff)
Merge pull request #1488 from secondlife/brad/gltf-dev-featurttes-merge
brad/gltf dev featurttes merge
Diffstat (limited to 'indra/newview/llfetchedgltfmaterial.cpp')
-rw-r--r--indra/newview/llfetchedgltfmaterial.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/indra/newview/llfetchedgltfmaterial.cpp b/indra/newview/llfetchedgltfmaterial.cpp
index e58027e579..6e45e2a0f3 100644
--- a/indra/newview/llfetchedgltfmaterial.cpp
+++ b/indra/newview/llfetchedgltfmaterial.cpp
@@ -77,16 +77,7 @@ void LLFetchedGLTFMaterial::bind(LLViewerTexture* media_tex)
{
if (mAlphaMode == LLGLTFMaterial::ALPHA_MODE_MASK)
{
- // dividing the alpha cutoff by transparency here allows the shader to compare against
- // the alpha value of the texture without needing the transparency value
- if (mBaseColor.mV[3] > 0.f)
- {
- min_alpha = mAlphaCutoff / mBaseColor.mV[3];
- }
- else
- {
- min_alpha = 1024.f;
- }
+ min_alpha = mAlphaCutoff;
}
shader->uniform1f(LLShaderMgr::MINIMUM_ALPHA, min_alpha);
}