April 29th, 2009, 07:04 AM
Can't draw polygons with two side lighting
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?
April 29th, 2009, 07:37 AM
Re: Can't draw polygons with two side lighting
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.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!