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
| Name | Type | Notes |
|---|---|---|
value | string |
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— Thetransformfor aworleyNoisemodeprop: maps'f1','f2','f2MinusF1','f1PlusF2'or'f1TimesF2'to the number the paint reads.