I have a simple stair (vertices in an array):
[]
[][]
I want this stair upside-down:
[][]
[]
To get this shape, I multiply each Y-Coordinate with -1, so basically scaling with -1 around the y-axis. This works great, but not with face culling, when face culling is enabled, the back-faces are shown. How can I fix that?
You can flip the direction of face culling when you draw these inverted objects.
Just call
glFrontFace()with GL_CW or GL_CCW, and put it back when you draw normal objects again.