diff options
author | Dave Parks <davep@lindenlab.com> | 2013-03-28 12:16:16 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-03-28 12:16:16 -0500 |
commit | 0f8976388ba0745c206d321d24c868b59f526119 (patch) | |
tree | 3ea032e46e560137c7a06d9597d846bc2bd62a2a /indra/newview/pipeline.cpp | |
parent | 48f433212f0b3f6a215156b3b26d0f43863727cd (diff) | |
parent | 5121dd1a533b1d589cf259e96fa6d0ba22b383ea (diff) |
Automated merge with https://bitbucket.org/lindenlab/davep-materials
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index c5fedab8c0..93ab8669b2 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -1643,8 +1643,19 @@ U32 LLPipeline::getPoolTypeFromTE(const LLTextureEntry* te, LLViewerTexture* ima case 1: alpha = true; // Material's alpha mode is set to blend. Toss it into the alpha draw pool. break; - default: - alpha = false; // Material's alpha mode is set to none, mask, or emissive. Toss it into the opaque material draw pool. + case 0: //alpha mode set to none, never go to alpha pool + case 3: //alpha mode set to emissive, never go to alpha pool + alpha = false; + break; + default: //alpha mode set to "mask", go to alpha pool if fullbright + if (te->getFullbright()) + { + alpha = true; + } + else + { + alpha = false; // Material's alpha mode is set to none, mask, or emissive. Toss it into the opaque material draw pool. + } break; } } |