isdistantlight VEX function

Returns whether a given light is “distant” (an environment light or directional light) .

Contexts: displace, fog, light, shadow, surface

See also: getlights

  1. int isdistantlight(int lightid)

Returns 1 if the light is a “distant” light (environment light or directional light) and 0 otherwise.

lightid

An integer identifying a light. You can get a list of light IDs for lights affecting the currently shaded surface with getlights.