small fragment shader tweak

This commit is contained in:
Josh Holtrop 2012-09-10 23:26:30 -04:00
parent eb0a24b8d4
commit 386d012ff7

View File

@ -15,7 +15,7 @@ void main(void)
color = vec4(0.2, 0.2, 0.2, 1.0) * ambient; /* ambient light */
n = normalize(normal_i);
NdotL = max(dot(n, -lightDir), 0.0);
NdotL = dot(n, -lightDir);
if (NdotL > 0.0)
{