diff options
author | Michael Pohoreski <ptolemy@lindenlab.com> | 2020-07-03 00:22:29 +0000 |
---|---|---|
committer | Michael Pohoreski <ptolemy@lindenlab.com> | 2020-07-03 00:22:29 +0000 |
commit | bbb4c6a453bb69cc3187dc092766715dd69a9052 (patch) | |
tree | 17a80b65fdfe2b03fb57f385e62327922afc93b9 /indra/newview/app_settings | |
parent | aeff11fbde03afbe2422b6cd57a5403cbb7c8c67 (diff) | |
parent | 57147a198e2899be136750f874729aaf817db298 (diff) |
Merged in SL-13539 (pull request #181)
SL-13539 Fix a white artifact over the water at certain angles
Approved-by: Dave Houlton
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl | 3 |
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)); } |