duh, use the proper param name.

meow-7.2.2
Tofu Linden 2010-01-29 00:57:28 -08:00
parent b734d11f8c
commit fcfcb1860d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ float calcPointlightOrSpotLight(vec3 v, vec3 n, vec4 lp, vec3 ln, float la, floa
float da = clamp(1.0/(la * d), 0.0, 1.0);
// spotlight coefficient.
float spot = max(dot(-ln, lv), is_omnidirectional);
float spot = max(dot(-ln, lv), is_pointlight);
da *= spot*spot; // GL_SPOT_EXPONENT=2
//angular attenuation