Skip to content
Snippets Groups Projects
Commit fcfcb186 authored by Tofu Linden's avatar Tofu Linden
Browse files

duh, use the proper param name.

parent b734d11f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment