volumesample
VEX function
Samples the volume primitive’s value.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float volumesample(int inputnum, int primnum, vector pos) -
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.