PDA

View Full Version : Which lights are enabled?



mogumbo
03-04-2005, 11: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.

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