summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/moonF.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-02-06 16:42:23 -0800
committerGraham Linden <graham@lindenlab.com>2019-02-06 16:42:23 -0800
commit8890c3238ab4ae8bbf1bc123284f9c6d4db4f9d6 (patch)
tree6d250b8114eb4d39a7c5810813a06d730665372b /indra/newview/app_settings/shaders/class1/deferred/moonF.glsl
parentf8171a909cb2a18fcca47f6a0317919ece802aef (diff)
SL-10478
Fix side-effects of having both sun and moon as potential directional light contributors. We pass an int to the shader indicating which to prefer instead of making per-pixel decisions and pass the moonlight color/di independently. Obsolete llsettingssky fade color which was unused elsewhere and cached for no reason.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/moonF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/moonF.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/moonF.glsl b/indra/newview/app_settings/shaders/class1/deferred/moonF.glsl
index c6c12f80f8..d964ce8eee 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/moonF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/moonF.glsl
@@ -35,6 +35,7 @@ out vec4 frag_data[3];
uniform vec4 color;
uniform vec4 sunlight_color;
+uniform vec4 moonlight_color;
uniform vec3 lumWeights;
uniform float moon_brightness;
uniform float minLuminance;
@@ -57,6 +58,7 @@ void main()
vec3 exp = vec3(1.0 - mix * moon_brightness) * 2.0 - 1.0;
c.rgb = pow(c.rgb, exp);
+ //c.rgb *= moonlight_color.rgb;
frag_data[0] = vec4(c.rgb, c.a);
frag_data[1] = vec4(0.0);