summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2023-10-25 10:02:50 -0700
committerGitHub <noreply@github.com>2023-10-25 10:02:50 -0700
commit887226c7d2462306191126cc5bfc0de96e18ad42 (patch)
treef12fa3dc4a3118307a72941c0ec2bf4668dd2f05
parent5c558a92c94c8b6eef930f12cf45824765481c92 (diff)
parent3ea1faf73cfc77c6e6213121e8afe4b101a6e4a6 (diff)
Merge pull request #471 from secondlife/SL-20065
SL-20065: Hack to reduce black spots on shiny water
-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);