Simstim

VEX Dictionary / intersect_lights

intersect_lights

Finds the nearest area light hit by a ray among a light list and runs its light shader there.

group: shadinglightpbrraytracing

Available in displace, fog, surface

Usage

int intersect_lights(int lightids[], vector pos, vector dir, float time, int &idx, float &dist, vector &clr, float &scale, ...)

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗