View Full Version : Which lights are enabled?

03-04-2005, 10:05 AM
I'd like to know which GL_LIGHTs are enabled in my GLSL shader. From looking at a related example in the Orange book I get the impression that you have to pass this information in yourself, but can anybody confirm this? It would be nice to have a variable like "gl_Light2Enabled" but I don't think there is one.

03-04-2005, 10:09 AM
Yes, you need to pass in this information yourself.