From 3ea1faf73cfc77c6e6213121e8afe4b101a6e4a6 Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Tue, 24 Oct 2023 16:53:27 -0700 Subject: SL-20065: Hack to reduce black spots on shiny water --- indra/newview/app_settings/shaders/class3/environment/waterF.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders/class3/environment') diff --git a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl index 4f79dd1ac5..ddade462be 100644 --- a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl +++ b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl @@ -280,7 +280,7 @@ void main() f = clamp(f, 0, 1); - color = mix(color, fb.rgb, f); + color = ((1.0 - f) * color) + fb.rgb; color = atmosFragLightingLinear(color, additive, atten); -- cgit v1.2.3