volumegradient
VEX function
Calculates the volume primitive’s gradient.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
vector volumegradient(int inputnum, int primnum, vector pos) -
vector volumegradient(string filename, int primnum, vector pos)
Calculates the volume primitive’s gradient. Returns 0 if there is no input or file, or the primitive number is out of range. The gradient is a vector pointing in the direction of increasing value.