volumesample VEX function

Samples the volume primitive’s value.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. float volumesample(int inputnum, int primnum, vector pos)

  2. float volumesample(string filename, int primnum, vector pos)

Samples the volume primitive’s value. Returns 0 if there is no input or file, or the primitive number is out of range.