diff options
author | Graham Linden <graham@lindenlab.com> | 2019-08-13 08:14:14 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-08-13 08:14:14 -0700 |
commit | 4e4011cddc4c6edf797bd3ff7950fb02d178a2e2 (patch) | |
tree | ac3dc2891b0c455f21d6dec71da57dc4586a0206 /indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl | |
parent | 6fbb35b712d25843d9fe10945a232749a89601c5 (diff) |
SL-11589
Modify altitude blend factor in cloud shaders to fade more aggressively and fix cloud rendering artifacts when at altitude.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl b/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl index 18daa5a242..2c1475d547 100644 --- a/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl +++ b/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl @@ -78,7 +78,7 @@ void main() vec3 P = position.xyz - camPosLocal.xyz + vec3(0,50,0); // fade clouds beyond a certain point so the bottom of the sky dome doesn't look silly at high altitude - altitude_blend_factor = (P.y > -4096.0) ? 1.0 : 1.0 - clamp(abs(P.y) / max_y, 0.0, 1.0); + altitude_blend_factor = clamp((P.y + 512.0) / max_y, 0.0, 1.0); // Set altitude if (P.y > 0.) |