• The CW clockwise
  • CCW counterclockwise
  • The thumb points in the direction that the triangle points to the observer, and the other fingers move counterclockwise around the thumb. If the finger moves in the same direction as the vertex of the triangle, the face is front, otherwise it is back.

  • Open back cull
  • The mode parameter can be GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. The default is GL_BACK.
glEnable(GL_CULL_FACE);
Copy the code
  • Backside culling is not enabled

  • Turn back culling on