transformWorleyDistance

The transform for a worleyNoise distance prop: maps 'euclidean', 'manhattan' or 'chebyshev' to the number the paint reads.

transformWorleyDistance(value: string): number

Import noise from shaders/std and use noise.transformWorleyDistance.

Parameters

NameTypeNotes
valuestring

Example

distance: {default: 'euclidean', transform: transformWorleyDistance, compileTime: true}

See also

  • worleyNoise — A complete cellular-noise paint: distances to drifting cell points, read through the color ramp.
  • transformWorleyMode — The transform for a worleyNoise mode prop: maps 'f1', 'f2', 'f2MinusF1', 'f1PlusF2' or 'f1TimesF2' to the number the paint reads.

Used by

WorleyNoise