What happened to "glstate.light[]" in Built-in state variables?

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

In GLSL, you’ve got _WorldSpaceLightPos0 and _LightColor0 for “pixel lights”. More can be learned from UnityCG.cginc. Helpful at all?

Ooohh…I see, very helpfull indeed!

I have been looking at the UnityCG.cginc file, and learned much from it, but there are still i few things which confuse me because a lot of older tutorials and shaders use built-in variables which have either changed or are not available anymore.

Thanks a lot for your help Jessy!