Skip to content

getphotonlight

Context(s)displace fog light shadow surface

int  getphotonlight()

Returns -1 if the shader is not generating photons from a light.

The return value is an integer identifying a light. You can get convert this integer ID to the light name with getlightname