small fragment shader tweak
This commit is contained in:
1 parent
eb0a24b8d4
commit
386d012ff7
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user