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.
Yes, you need to pass in this information yourself.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.