Is there a way to find out if a light is enabled in GLSL that doesn't involve passing attributes or creating a ton of different shaders?
What about using NVidia's C for Graphics (Cg)? Can I do it with Cg?
I am now convinced that you can't do it. But now I ask: why not?