DIFFUSE_ALPHA_MODE_BLEND flag should disable auto-alphamasking on applicable face.

This commit is contained in:
Shyotl
2013-07-13 19:36:33 -05:00
parent 94ab22f6d6
commit bec3ba985e

View File

@@ -1072,6 +1072,12 @@ bool LLFace::canRenderAsMask()
return false;
}
LLMaterial* mat = te->getMaterialParams();
if (mat && mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_BLEND)
{
return false;
}
static const LLCachedControl<bool> use_rmse_auto_mask("SHUseRMSEAutoMask",false);
static const LLCachedControl<F32> auto_mask_max_rmse("SHAutoMaskMaxRMSE",.09f);
if ((te->getColor().mV[3] == 1.0f) && // can't treat as mask if we have face alpha