summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/environment
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2023-10-24 16:53:27 -0700
committerCosmic Linden <cosmic@lindenlab.com>2023-10-24 17:50:49 -0700
commit3ea1faf73cfc77c6e6213121e8afe4b101a6e4a6 (patch)
tree982075e9415c551ba3bf0cc93b10734928565744 /indra/newview/app_settings/shaders/class3/environment
parentcba71633559ccdfd394983a6086da816e739a730 (diff)
SL-20065: Hack to reduce black spots on shiny water
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/environment')
-rw-r--r--indra/newview/app_settings/shaders/class3/environment/waterF.glsl2
1 files changed, 1 insertions, 1 deletions
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);