You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is the winding order of the generated vertices of the cube faces. The vertices of the top, left and front faces are specified in clock wise order, while the others are specified in counter clock wise order. Fixing that got me the correct results now.
The normals when lighting the 3D cube example posted here are inverted for the left, top, and back faces.
The text was updated successfully, but these errors were encountered: