diff options
author | Dave Parks <davep@lindenlab.com> | 2023-02-09 17:00:36 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-02-09 17:00:36 -0600 |
commit | 577f6a46f02ecfa4efabc0b379e44e4f53a0b391 (patch) | |
tree | 6c55da64e3276ae5cfb3ea78e54b906d90234993 /indra/newview/llfetchedgltfmaterial.cpp | |
parent | 95de63eaa3bab44dc435d1448d0732d6ffe13544 (diff) |
SL-19181 Modulate "glow" by PBR emissive.
Diffstat (limited to 'indra/newview/llfetchedgltfmaterial.cpp')
-rw-r--r-- | indra/newview/llfetchedgltfmaterial.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfetchedgltfmaterial.cpp b/indra/newview/llfetchedgltfmaterial.cpp index 003b373e50..f3583daa0a 100644 --- a/indra/newview/llfetchedgltfmaterial.cpp +++ b/indra/newview/llfetchedgltfmaterial.cpp @@ -60,7 +60,9 @@ void LLFetchedGLTFMaterial::bind(LLViewerTexture* media_tex) if (mAlphaMode == LLGLTFMaterial::ALPHA_MODE_MASK) { - min_alpha = mAlphaCutoff; + // 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]; } shader->uniform1f(LLShaderMgr::MINIMUM_ALPHA, min_alpha); |