I have been learning how to write my own Cg shaders for a few days now, but a lot of example I see have the following Built-in state variables:
glstate.light[0].position
glstate.light[0].diffuse
etc…
When I try to use glstate.light[0] in my shaders, it throws an error. So I looked at the http://unity3d.com/support/documentation/Components/SL-BuiltinStateInPrograms.html page and noticed that glstate.light[ ] is not supported anymore.
So what’s the equivalent now?
Thanks for your time!
Stephane