summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-11-13 17:27:12 +0000
committerRider Linden <rider@lindenlab.com>2018-11-13 17:27:12 +0000
commit4231714698018b8bd75f3f57df849f81cab05d9c (patch)
tree8695606e3038ee5e5d31f2b7c0c8c1a63fc540d8 /indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl
parentbda785e8b1bef35ecd9d45a7092b0ab66c17d1f4 (diff)
parenta49e2b604e6b505e083e24b10e39053196d917c1 (diff)
Merged in graham_linden/viewer-eep-fixes (pull request #189)
SL-10044 SL-10045
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl
index a83aa95f95..62a034ce05 100644
--- a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl
+++ b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsHelpersV.glsl
@@ -49,3 +49,13 @@ vec3 atmosGetDiffuseSunlightColor()
return getSunlitColor();
}
+vec3 scaleDownLight(vec3 light)
+{
+ return (light / scene_light_strength );
+}
+
+vec3 scaleUpLight(vec3 light)
+{
+ return (light * scene_light_strength);
+}
+