Skip to content
Snippets Groups Projects
Commit a471ddd0 authored by Ptolemy's avatar Ptolemy
Browse files

SL-12171: Fix for SL-12006 that made non-emissive portions of textures too dim.

parent 391976ff
No related branches found
No related tags found
No related merge requests found
...@@ -272,7 +272,7 @@ void main() ...@@ -272,7 +272,7 @@ void main()
#if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_EMISSIVE) #if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_EMISSIVE)
final_color.a = diffuse_linear.a; final_color.a = diffuse_linear.a;
final_color.rgb *= 0.5; final_color.rgb = mix( diffuse_linear.rgb, final_color.rgb*0.5, diffuse_tap.a ); // SL-12171: Fix emissive texture portion being twice as bright.
#endif #endif
final_color.a = max(final_color.a, emissive_brightness); final_color.a = max(final_color.a, emissive_brightness);
......
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