summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-11-06 16:38:06 +0000
committerGraham Linden <graham@lindenlab.com>2018-11-06 16:38:06 +0000
commit8c1aefc17c710b55ed7a72bd9de14cbed58ccd31 (patch)
treefe13d4e2fca64318b8019906aa7525195c5ce159 /indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl
parente0a1b46e6129a0e6ca62efe18882889db96c572f (diff)
Remove scaleDownLight funcs and eliminate unused copy-pasted funcs in lighting shaders.
Also fix terrain response to atmospherics shaders (was failing to apply ambient on low end even when atmospherics was on).
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl
index bf0a9048f0..c1cc3679a7 100644
--- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl
+++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsF.glsl
@@ -25,13 +25,14 @@
vec3 atmosFragAmbient(vec3 light, vec3 sunlit)
{
- return light;
+ /* stub function for fallback compatibility on class1 hardware */
+ return light;
}
vec3 atmosFragLighting(vec3 light, vec3 additive, vec3 atten)
{
- /* stub function for fallback compatibility on class1 hardware */
- return light;
+ /* stub function for fallback compatibility on class1 hardware */
+ return light;
}
vec3 atmosFragAffectDirectionalLight(float light, vec3 sunlit)
@@ -41,7 +42,8 @@ vec3 atmosFragAffectDirectionalLight(float light, vec3 sunlit)
vec3 atmosLighting(vec3 light)
{
- return atmosFragLighting(light, vec3(0), vec3(1.0));
+ /* stub function for fallback compatibility on class1 hardware */
+ return light;
}
void calcFragAtmospherics(vec3 inPositionEye, float ambFactor, out vec3 sunlit, out vec3 amblit, out vec3 atten, out vec3 additive)