Skip to content
Snippets Groups Projects
Commit 520ebb39 authored by Beq's avatar Beq
Browse files

[BUG-232834][BUG-232871] Alpha mask is being applied with emissive mask

This is the most local fix for this issue, addressing the specific unqualified use of HAS_ALPHA_MASK.
If we find other issues with alpha mask being applied incorrectly then, it may be better to fix higher up in llvieweshadermgr.cpp by reverting the changes from SL-17532. 
For now, this way works for this specific bug without non-emissive side-effects.
parent 15b5dedb
No related branches found
No related tags found
No related merge requests found
...@@ -227,7 +227,7 @@ void main() ...@@ -227,7 +227,7 @@ void main()
vec4 diffcol = texture2D(diffuseMap, vary_texcoord0.xy); vec4 diffcol = texture2D(diffuseMap, vary_texcoord0.xy);
diffcol.rgb *= vertex_color.rgb; diffcol.rgb *= vertex_color.rgb;
#ifdef HAS_ALPHA_MASK #if HAS_ALPHA_MASK && (DIFFUSE_ALPHA_MODE != DIFFUSE_ALPHA_MODE_EMISSIVE)
#if DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND #if DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND
if (diffcol.a*vertex_color.a < minimum_alpha) if (diffcol.a*vertex_color.a < minimum_alpha)
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment