getlights
VEX function
Returns an array of light identifiers for the currently shaded surface.
Contexts: displace, fog, light, shadow, surface
See also: getphotonlight, importance_light, sample_light, eval_light 2 more , getlightname, getshadowscope
-
int[] getlights(...)
You can limit the lights added to the array using the “lightmask” keyword argument or the “categories” keyword argument.
getlights("lightmask", "light*,^light2"); getlights("categories", "shadow|occlusion");