Hi people, I was just wondering how to draw a lit polygon correctly. I draw a plate in clockwise orientation and doing this I'm telling Opengl that the face I'm looking is back. This way is right because my "sun" is in the other side of the plate and all light goes well. But, if I rotate the plate, the back side should be lit, but because it is the backside, even in front of the "sun" it is not enlightened. In addition, the side that doesn't face the sun, the front one, is enlightened.
My question is, what is the secret to do Opengl control this automatically, or, how can I draw a polygon in such a manner that the lighting can lit the faces correctly? In real life it doesn't matter what side is the front or back one, what matter is that if a side faces light, it will be enlightened. How to do it?