distortPerlin
distortPerlin(
uv,strength?,scale?,time?,octaves?):Node<"vec2">
Defined in: packages/nodes/src/distortion/distortNoise.ts:126
Apply Perlin noise distortion for smoother, more organic displacement.
Parameters
Section titled “Parameters”Node <"vec2">
Input UV coordinates
strength?
Section titled “strength?”FloatInput = 0.02
Distortion strength
scale?
Section titled “scale?”FloatInput = 5
Noise scale
FloatInput = 0
Animation time
octaves?
Section titled “octaves?”number = 1
Number of noise octaves for detail (default: 1)
Returns
Section titled “Returns”Node <"vec2">
Perlin-distorted UV coordinates
Example
Section titled “Example”const distorted = distortPerlin(uv, 0.02, 8, time, 2)