summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2020-03-06 17:30:55 +0000
committerDave Parks <davep@lindenlab.com>2020-03-06 17:30:55 +0000
commitfd043095c6d5c3f5b065322c6c9332a7170e3d0a (patch)
treea07bac4e4ea4b095d93dcde6aeff07786f00e1d1 /indra/newview/app_settings/shaders/class1/windlight
parentc1a3797b304f95e4ed025596d611bb2861d322b8 (diff)
parent7d0cf70e4f335056e0d81b0b48264e5dda5be668 (diff)
Merged in davep/BUG-228263 (pull request #23)
Davep/BUG-228263 Approved-by: Dave Houlton <euclid@lindenlab.com>
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 e5f1e11180..dcb02bd1c1 100644
--- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
+++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsFuncs.glsl
@@ -46,6 +46,7 @@ float getAmbientClamp()
return 1.0f;
}
+
void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, out vec3 sunlit, out vec3 amblit, out vec3 additive, out vec3 atten, bool use_ao) {
vec3 P = inPositionEye;
@@ -123,7 +124,7 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou
temp2.x *= sun_moon_glow_factor;
vec4 amb_color = ambient_color;
-
+
//increase ambient when there are more clouds
vec4 tmpAmbient = amb_color + (vec4(1.) - amb_color) * cloud_shadow * 0.5;