int getphotonlight()
Returns -1 if the shader is not generating photons from a light.
-1
The return value is an integer identifying a light. You can get convert this integer ID to the light name with getlightname