OpenGL, some normals reversed despite counterclockwise order
问题 In the code below, I don't understand why some faces have their normals reversed. The triangles looks ordered in the anti-clockwise direction, but some faces remain black. When I modify the fragment shader with color = -vnormal; the two black faces are rendered correctly, but not the others, obviously. Thanks for any help given // minimalist but fonctional code using glew, glfw, glm #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm