summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-09-20 16:44:39 -0700
committerGraham Linden <graham@lindenlab.com>2013-09-20 16:44:39 -0700
commit2a03e8f9fb24bb68b79e34bcfa9a45d3e377b0b8 (patch)
treeb6d325cb77de72da605fc4fc032cf4970126ee14 /indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
parent8aadd9d27025e6ed8e50e88ec9548d48e48095c8 (diff)
MAINT-3172 fix rendering regressions from release mergedown
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl')
-rwxr-xr-xindra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl b/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
index dc0b989e34..a9288b3df6 100755
--- a/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
+++ b/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
@@ -45,7 +45,7 @@ float calcPointLightOrSpotLight(vec3 v, vec3 n, vec4 lp, vec3 ln, float la, floa
lv *= 1.0/d;
//distance attenuation
- float da = clamp(1.0/(1.f/la * d), 0.0, 1.0);
+ float da = clamp(1.0/(la * d), 0.0, 1.0);
// spotlight coefficient.
float spot = max(dot(-ln, lv), is_pointlight);