Can't draw polygons with two side lighting
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Can't draw polygons with two side lighting

  1. #1
    Join Date
    Feb 2009
    Posts
    12

    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?

  2. #2
    Join Date
    Feb 2009
    Posts
    12

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center