diff options
author | Graham Linden <graham@lindenlab.com> | 2018-11-06 16:38:06 +0000 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-11-06 16:38:06 +0000 |
commit | 8c1aefc17c710b55ed7a72bd9de14cbed58ccd31 (patch) | |
tree | fe13d4e2fca64318b8019906aa7525195c5ce159 /indra/newview/app_settings/shaders/class1/deferred/materialF.glsl | |
parent | e0a1b46e6129a0e6ca62efe18882889db96c572f (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/deferred/materialF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/materialF.glsl | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl index c001ff9ac8..c1c17532b8 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl @@ -110,13 +110,6 @@ uniform vec3 light_direction[8]; uniform vec3 light_attenuation[8]; uniform vec3 light_diffuse[8]; -vec3 calcDirectionalLight(vec3 n, vec3 l) -{ - float a = max(dot(n,l),0.0); - return vec3(a,a,a); -} - - vec3 calcPointLightOrSpotLight(vec3 light_col, vec3 npos, vec3 diffuse, vec4 spec, vec3 v, vec3 n, vec4 lp, vec3 ln, float la, float fa, float is_pointlight, inout float glare) { //get light vector |