Dave Parks 2013-05-02 17:09:32 -05:00
commit f1975f0fe9
1 changed files with 6 additions and 0 deletions

View File

@ -1097,6 +1097,12 @@ bool LLFace::canRenderAsMask()
{
return false;
}
LLMaterial* mat = te->getMaterialParams();
if (mat && mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_BLEND)
{
return false;
}
if ((te->getColor().mV[3] == 1.0f) && // can't treat as mask if we have face alpha
(te->getGlow() == 0.f) && // glowing masks are hard to implement - don't mask