surfaceNoiseAt

surfaceNoise at a 2D point you already hold.

surfaceNoiseAt(p: Expr): Expr

Import materials from shaders/std and use materials.surfaceNoiseAt.

Parameters

NameTypeNotes
pExpr

Example

const n = surfaceNoiseAt(mul(pat, 6))

See also

  • surfaceNoise — Smooth signed noise at a 2D point, roughly −1 to 1, with features about one unit wide.
  • volumeNoiseAt — Smooth signed noise at a 3D point, roughly −1 to 1.
  • cellNoiseAt — Cellular noise at a 2D point: 0 at each cell's seed point, rising toward the cell walls.

Used by

Marble, Nebula, Plastic, Water