gradientNoise3

function gradientNoise3
field.ts:113
gradientNoise3(seed: Seed, x: number, y: number, z: number) → FieldSample

Perlin gradient noise in roughly [-1, 1], with its analytic gradient.

The eight corner dot products give the value the ordinary way; the eight corner gradients, interpolated with the same weights, give the part of the derivative that comes from the gradients themselves, and the fade curve's slope gives the part that comes from the interpolation. Adding them is the whole derivation.

seedSeed
Undocumented
xnumber
Undocumented
ynumber
Undocumented
znumber
Undocumented

Generated from the source of @inertialref/procedural and its comments. Nothing on this page is written by hand.