transformWorleyMode
The transform for a worleyNoise mode prop: maps 'f1', 'f2', 'f2MinusF1', 'f1PlusF2' or 'f1TimesF2' to the number the paint reads.
transformWorleyMode(value: string): number
Import noise from shaders/std and use noise.transformWorleyMode.
Parameters
| Name | Type | Notes |
|---|---|---|
value | string |
Example
mode: {default: 'f1', transform: transformWorleyMode, compileTime: true}
See also
worleyNoise— A complete cellular-noise paint: distances to drifting cell points, read through the color ramp.transformWorleyDistance— Thetransformfor aworleyNoisedistanceprop: maps'euclidean','manhattan'or'chebyshev'to the number the paint reads.