diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-14 16:24:20 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-14 16:24:20 -0500 |
commit | 2ce39f3ad98fe855fb126dc29c82145751434421 (patch) | |
tree | b6cb724e100c20b94ea03f624b6fb8d30c54a288 /indra/newview/llvovolume.cpp | |
parent | 47e039ce1fb30f0e44cd6a79c0655b94794bc577 (diff) |
SL-17701 Fix for shadow passes not respecting double sided and alpha parameters for PBR materials.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index b2365653ba..a02c18d99f 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5539,6 +5539,14 @@ void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep, draw_info->mNormalMap = vobj->getGLTFNormalMap(te); draw_info->mSpecularMap = vobj->getGLTFMetallicRoughnessMap(te); draw_info->mEmissiveMap = vobj->getGLTFEmissiveMap(te); + if (draw_info->mGLTFMaterial->mAlphaMode == LLGLTFMaterial::ALPHA_MODE_MASK) + { + draw_info->mAlphaMaskCutoff = gltf_mat->mAlphaCutoff * gltf_mat->mAlbedoColor.mV[3]; + } + else + { + draw_info->mAlphaMaskCutoff = 1.f; + } } else if (mat) { |