summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/lighting
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-19 15:02:13 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-19 15:02:13 -0700
commit1a6f54cb5ede03f7e7d0b24f7eb45081adf0464e (patch)
treeef652dfca9c93b1cd2411afdecebadccf4f85d75 /indra/newview/app_settings/shaders/class1/lighting
parent30bdc6c7c5ea068d72c13f18ea550d86889892d4 (diff)
SL-10764
Fix lighting issues when using shaders, but not ALM. Shader code cleanup (remove do nothing functions only in one file). Fix obsolete comment to refer to correct storage for projector ambiance.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/lighting')
-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 a9288b3df6..dd14192ad6 100644
--- a/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
+++ b/indra/newview/app_settings/shaders/class1/lighting/lightFuncV.glsl
@@ -52,7 +52,7 @@ float calcPointLightOrSpotLight(vec3 v, vec3 n, vec4 lp, vec3 ln, float la, floa
da *= spot*spot; // GL_SPOT_EXPONENT=2
//angular attenuation
- da *= calcDirectionalLight(n, lv);
+ da *= calcDirectionalLight(n, -lv);
return da;
}