We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71ce9f6 commit 25f71bcCopy full SHA for 25f71bc
webgl/lessons/webgl-3d-lighting-point.md
@@ -98,8 +98,8 @@ and so would not be a complete unit vector
98
99
vec3 surfaceToLightDirection = normalize(v_surfaceToLight);
100
101
- - float light = dot(v_normal, u_reverseLightDirection);
102
- + float light = dot(v_normal, surfaceToLightDirection);
+ - float light = dot(normal, u_reverseLightDirection);
+ + float light = dot(normal, surfaceToLightDirection);
103
104
outColor = u_color;
105
0 commit comments