Advertisement

A newbie lightning question...

Started by April 11, 2001 05:41 AM
0 comments, last by Roquqkie 23 years, 7 months ago
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..

This topic is closed to new replies.

Advertisement