diff options
author | callum_linden <none@none> | 2013-05-06 19:45:23 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2013-05-06 19:45:23 -0700 |
commit | 1e7b133e75c2c93290db6b0c9db721e95849ff30 (patch) | |
tree | 0a329819a22244fb84a0f25d2f3e9c04f0d3dd29 /indra/llprimitive/llmaterial.cpp | |
parent | 90d3045c7f693f599dac64c1845ddc639150fe1e (diff) | |
parent | 9609fa72594dd71f8be6417b5a889cfac7112cfd (diff) |
Merge with lindenlab/viewer-development-materials
Diffstat (limited to 'indra/llprimitive/llmaterial.cpp')
-rw-r--r-- | indra/llprimitive/llmaterial.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llprimitive/llmaterial.cpp b/indra/llprimitive/llmaterial.cpp index bd98aa040a..ce443dea1d 100644 --- a/indra/llprimitive/llmaterial.cpp +++ b/indra/llprimitive/llmaterial.cpp @@ -186,12 +186,19 @@ bool LLMaterial::operator != (const LLMaterial& rhs) const } -U32 LLMaterial::getShaderMask() +U32 LLMaterial::getShaderMask(U32 alpha_mode) { //NEVER incorporate this value into the message system -- this function will vary depending on viewer implementation U32 ret = 0; //two least significant bits are "diffuse alpha mode" - ret = getDiffuseAlphaMode(); + if (alpha_mode != DIFFUSE_ALPHA_MODE_DEFAULT) + { + ret = alpha_mode; + } + else + { + ret = getDiffuseAlphaMode(); + } llassert(ret < SHADER_COUNT); |