I want to draw a linux flag in a small OpenGL program I am developping. The flag is updated by simple physical laws and at the moment it looks quite natural.
One problem however is that the flag can rotate (the view of the camera, and by the wind). When the flag is rotated over 180 degrees, the standard behaviour of the GPU is to stop drawing triangles. By using
GL.Disable(EnableCap.CullFace); the GPU will also draw elements who are rotated over 180 degrees.
One small problem however is that the normals are still wrong rotated. This results in a flag that is only visible by ambient light.
Is there an elegant way to illuminate both sides of the flag, as if the normals would point in both directions?