summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-07-02 14:47:54 -0700
committerPtolemy <ptolemy@lindenlab.com>2020-07-02 14:48:54 -0700
commit57147a198e2899be136750f874729aaf817db298 (patch)
tree17a80b65fdfe2b03fb57f385e62327922afc93b9 /indra/newview/app_settings/shaders/class1/windlight
parentaeff11fbde03afbe2422b6cd57a5403cbb7c8c67 (diff)
SL-13539 Fix a white artifact over the water at certain angles
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight')
-rw-r--r--indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
index 4d12c5d19a..b7741ff48d 100644
--- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
+++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
@@ -100,7 +100,8 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou
temp2.x = dot(Pn, tmpLightnorm.xyz);
// dampen sun additive contrib when not facing it...
- if (length(light_dir) > 0.01)
+ // SL-13539: This "if" clause causes an "additive" white artifact at roughly 77 degreees.
+ // if (length(light_dir) > 0.01)
{
temp2.x *= max(0.0f, dot(light_dir, Pn));
}