A newbie lightning question...
Hi!
I''ve recently stopped using DirectX API and started all over again using OpenGL...It rules!!!
Now here''s the problem:
I''ve read some of Nehe´s great tutorials, here among lesson 7 (lightning/rotation etc.)...Now in there he uses GL_LIGHT1...I thought it was weird and traced the definition in gl.h and found out that there were GL_LIGHT1 to GL_LIGHT7...Does this mean that I can only use 7 different lights at the same time???
Don''t laugh! I''m just a OpenGL-newbie
Best regards
Roquqkie
=P nope, you can have as many lights as you like, the ones defined in the opengl api are just constants that, like the near-pointless gluint variable, make it simpler for someone to implement lighting into their projects..
If you want more lights, just define more variables like GL_LIGHT1 etc. (edit the gl.h file and see what types of variables they are) then just use the ones you defined..
If you want more lights, just define more variables like GL_LIGHT1 etc. (edit the gl.h file and see what types of variables they are) then just use the ones you defined..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement