summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-06-20 08:49:09 -0700
committerGraham Linden <graham@lindenlab.com>2019-06-20 08:49:09 -0700
commit81659325b8978f78cc2633836404bfb0892564e9 (patch)
tree370641bf55575bf4ad15b52ed897dcb1844b6f74 /indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl
parentc1d1d7968325403a8033fa79567f07345c49b0a8 (diff)
SL-11373
Fix class2/windlight clouds.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl b/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl
index 9f49432c7d..20ab0fb171 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/cloudsV.glsl
@@ -110,7 +110,7 @@ void main()
light_atten = (blue_density + vec4(haze_density * 0.25)) * (dens_mul * max_y);
// Calculate relative weights
- temp1 = blue_density + haze_density;
+ temp1 = abs(blue_density) + vec4(abs(haze_density));
blue_weight = blue_density / temp1;
haze_weight = haze_density / temp1;