summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-28 18:36:04 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-28 18:36:04 -0800
commit3e1cd883d59d93218edad7e8f3932d42bb9f0f82 (patch)
treeaa121526c285b77a05759e6d664e30966edaa5cb /indra
parentf00e311756bf499cde3d5273d0f2de39b1f21636 (diff)
fix the shader dp light going negative!
Diffstat (limited to 'indra')
-rw-r--r--indra/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 211de830fa..0f03e336be 100644
--- a/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
+++ b/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
@@ -48,7 +48,7 @@ float calcPointLight2(vec3 v, vec3 n, vec4 lp, vec3 ln, float la)
float da = clamp(1.0/(la * d), 0.0, 1.0);
//angular attenuation
- da *= dot(lv, -ln) * calcDirectionalLight(n, lv);
+ da *= calcDirectionalLight(-ln, lv) * calcDirectionalLight(n, lv);
return da;
}