Permalink
Browse files

Propogate correct mats shader mask for rigged alpha faces.

  • Loading branch information...
1 parent b8f1468 commit 8e7574b9ae9fb5cd6430e084ed38acb6c87a46a9 @Shyotl Shyotl committed Aug 9, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 indra/newview/llvovolume.cpp
@@ -4987,9 +4987,9 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
if(te->getColor().mV[3] > 0.f)
{
U32 mask = te->getFullbright() ? LLDrawPoolAvatar::RIGGED_FULLBRIGHT_ALPHA : LLDrawPoolAvatar::RIGGED_ALPHA;
- if (mat && LLPipeline::sRenderDeferred && te->getColor().mV[3] >= 0.999f )
+ if (mat && LLPipeline::sRenderDeferred)
{
- if(mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_BLEND)
+ if(te->getColor().mV[3] < 0.999f || mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_BLEND)
mask = mat->getShaderMask(LLMaterial::DIFFUSE_ALPHA_MODE_BLEND);
else
mask = mat->getShaderMask();

0 comments on commit 8e7574b

Please sign in to comment.