Simstim

VEX Dictionary / sample_light

sample_light

Picks a random sample position on a given light source and evaluates its light shader there.

group: samplingsamplinglightpbr

Available in displace, fog, surface

Usage

int sample_light(int lightid, vector pos, vector sam, float time, vector &pos, vector &clr, float &scale, ...)

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗