Click to See Complete Forum and Search --> : Can't draw polygons with two side lighting


Gastello
April 29th, 2009, 08:04 AM
I am using glDrawArrays function and sets befor glLightModel(GL_LIGHT_MODEL_TWO_SIDE,GL_TRUE). Polygons are drawn with one side lighting. If I change glDrawArrays drawing to usage of glBegin( GL_TRIANGLES ) glEnd() glVertex() then the polygons are drawn with two side lighting. Someone could help me with the problem?

Gastello
April 29th, 2009, 08:37 AM
I found hint to solve the problem - to add aditionals lights with opossite directions.
But anyway would like to have correct solution of this problem.