From ae9174ffdf340ef12c80547d90d05919957ab512 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Tue, 10 Dec 2024 13:28:50 -0800 Subject: #3234 Fix for slightly transparent objects negating colors (#3259) --- indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index 02aaf24194..3e702f26be 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -308,6 +308,7 @@ void main() final_scale = 1; #endif - frag_color = max(color * final_scale, vec4(0)); + color.rgb *= final_scale; + frag_color = max(color, vec4(0)); } -- cgit v1.2.3