summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-02-08 22:10:07 +0000
committerRider Linden <rider@lindenlab.com>2019-02-08 22:10:07 +0000
commita1c2d021261d38de7dabd0863dd264ac3bf50523 (patch)
tree3b09e4412ccac313dd93adff2d14d1c766b5686a /indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl
parentc8d8414b3b2e83fbaffd6e48f55ca14a3cb27ca4 (diff)
parent0a7bc35335666cc310ef900d4e4144c658b92522 (diff)
Merged in graham_linden/viewer-eep-fixes (pull request #273)
SL-10478, SL-10486, SL-10501, SL-10415, SL-10487
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl b/indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl
index 3270c243a4..9bd75cf118 100644
--- a/indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl
+++ b/indra/newview/app_settings/shaders/class3/windlight/atmosphericsV.glsl
@@ -38,6 +38,8 @@ uniform vec3 camPosLocal;
uniform vec4 lightnorm;
uniform vec4 sunlight_color;
+uniform vec4 moonlight_color;
+uniform int sun_up_factor;
uniform vec4 ambient;
uniform vec4 blue_horizon;
uniform vec4 blue_density;
@@ -63,7 +65,7 @@ void calcAtmospherics(vec3 inPositionEye) {
vec3 temp2 = vec3(0);
vec4 blue_weight;
vec4 haze_weight;
- vec4 sunlight = sunlight_color;
+ vec4 sunlight = (sun_up_factor == 1) ? sunlight_color : moonlight_color;
vec4 light_atten;
//sunlight attenuation effect (hue and brightness) due to atmosphere