Skip to content

Commit ae9174f

Browse files
#3234 Fix for slightly transparent objects negating colors (#3259)
1 parent 97826b5 commit ae9174f

File tree

1 file changed

+2
-1
lines changed
  • indra/newview/app_settings/shaders/class2/deferred

1 file changed

+2
-1
lines changed

indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ void main()
308308
final_scale = 1;
309309
#endif
310310

311-
frag_color = max(color * final_scale, vec4(0));
311+
color.rgb *= final_scale;
312+
frag_color = max(color, vec4(0));
312313
}
313314

0 commit comments

Comments
 (0)