diff --git a/doc/contributions.txt b/doc/contributions.txt index 818cd384dc..123189f5be 100755 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -245,6 +245,7 @@ Ansariel Hiller SL-19623 SL-4126 SL-20224 + https://github.com/secondlife/viewer/issues/1051 Aralara Rajal Arare Chantilly CHUIBUG-191 diff --git a/indra/newview/llfetchedgltfmaterial.cpp b/indra/newview/llfetchedgltfmaterial.cpp index 97b959e5cb..1ca7ffaec1 100644 --- a/indra/newview/llfetchedgltfmaterial.cpp +++ b/indra/newview/llfetchedgltfmaterial.cpp @@ -76,7 +76,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); }