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/lldrawpool.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/lldrawpool.cpp')
-rw-r--r-- | indra/newview/lldrawpool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp index 1e548141c8..7c4c2e4b7e 100644 --- a/indra/newview/lldrawpool.cpp +++ b/indra/newview/lldrawpool.cpp @@ -577,6 +577,8 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba params.mGroup->rebuildMesh(); } + LLGLDisable cull(params.mGLTFMaterial && params.mGLTFMaterial->mDoubleSided ? GL_CULL_FACE : 0); + LLGLEnableFunc stencil_test(GL_STENCIL_TEST, params.mSelected, &LLGLCommonFunc::selected_stencil_test); params.mVertexBuffer->setBufferFast(mask); |