summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-02-01 13:41:31 -0800
committerGraham Linden <graham@lindenlab.com>2019-02-01 13:41:31 -0800
commit5a8610ccb7e1f5a0e4d54170ac922e6820ce3acb (patch)
tree13af4da0c897474ca41d7c797b15fe3148ad6ada /indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl
parent6716e543a160dd50913309834e7bd2d00034854c (diff)
SL-9996, SL-1130, SL-5546
Fix bug with setting texture matrix for rigged mesh. Fix z-fighting between sea and sky in ALM by cheating sky, stars, and moon using gl_FragDepth. Fix handling of atmospheric haze glow w.r.t independent sun/moon positioning (we can no longer depend on them being mutex to each other).
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl b/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl
index a250cf2c45..3e3bd929e1 100644
--- a/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl
+++ b/indra/newview/app_settings/shaders/class2/windlight/cloudsV.glsl
@@ -57,7 +57,7 @@ uniform float density_multiplier;
uniform float max_y;
uniform vec4 glow;
-uniform float sun_up_factor;
+uniform float sun_moon_glow_factor;
uniform vec4 cloud_color;
@@ -131,7 +131,7 @@ void main()
temp2.x = pow(temp2.x, glow.z);
// glow.z should be negative, so we're doing a sort of (1 / "angle") function
- //temp2.x *= sun_up_factor;
+ temp2.x *= sun_moon_glow_factor;
// Add "minimum anti-solar illumination"
temp2.x += .25;