snoise VEX function

These functions are similar to wnoise.

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

  1. float snoise(vector pos)

  2. vector snoise(vector pos)

  3. float snoise(vector pos, int turbulence, float rough, float atten)

  4. vector snoise(vector pos, int turbulence, float rough, float atten)

These functions are similar to wnoise. The noise returned is based on the weights of all of the closest points, with each points’s contribution based on a meta-ball like rolloff curve. That is, if the sample point is close to the sphere, its contribution will be greater.

The bounds on the noise are roughly (-1.7, 1.7). Only 3D noise is supported. However, this noise has the ability to compute turbulence with roughness and attenuation on the noise.

See noise and randomness in the VEX language guide for more information.