Hi.
I have a problem with lights, and I can´t solve it.
I´m drawing several shapes which are composed by polygons. I apply the same colors and lights to all shapes. All polygons have one face lighted and the other shaded. The problem is that in some shapes the faces lighted are just the opposite that in the others, and this causes an annoyed scene.
I have made some tests, and I can change the face lighted inserting the points just in the opposite order, but I can´t control this with a lot of shapes.
Is there any way to light the two faces of the polygons ( I have tried with glMaterialfv(GL.GL_FRONT_AND_BACK, doesn´t work to me ), or how can I get to light always the face in the same orientation??
Thanks.