-
April 29th, 2009, 07:04 AM
#1
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
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|