getphotonlight VEX function

Returns the integer ID of the light being used for photon shading.

Contexts: displace, fog, light, shadow, surface

See also: getlights, getlightname

  1. 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