diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-16 00:10:29 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-16 00:10:29 +0300 |
commit | bdb8caf790207e1a6f46d495a586b38bb52e58e9 (patch) | |
tree | 3ed50d019b3d78c748ed6b46ca69f2ca7943f41a /indra/newview/llfetchedgltfmaterial.cpp | |
parent | c8217c156a96faa95ed92e8c0a6d7c43960da46d (diff) | |
parent | 29be88d60d654193926add496d2d851f7c217356 (diff) |
Merge branch 'release/materials_featurette' into marchcat/x-mf-merge
Diffstat (limited to 'indra/newview/llfetchedgltfmaterial.cpp')
-rw-r--r-- | indra/newview/llfetchedgltfmaterial.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/indra/newview/llfetchedgltfmaterial.cpp b/indra/newview/llfetchedgltfmaterial.cpp index 1dd1dbabbe..5296f40119 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); } |