waveHorizontal
waveHorizontal(
uv,amplitude?,frequency?,time?,speed?):Node<"vec2">
Defined in: packages/nodes/src/distortion/wave.ts:20
Apply horizontal wave distortion to UV coordinates. Creates a wavy effect like looking through water or heat haze.
Parameters
Section titled “Parameters”Node <"vec2">
Input UV coordinates
amplitude?
Section titled “amplitude?”FloatInput = 0.02
Wave amplitude in UV space (default: 0.02)
frequency?
Section titled “frequency?”FloatInput = 10
Wave frequency (default: 10)
FloatInput = 0
Animation time for moving waves
speed?
Section titled “speed?”FloatInput = 1
Animation speed multiplier (default: 1)
Returns
Section titled “Returns”Node <"vec2">
Distorted UV coordinates
Example
Section titled “Example”const distortedUV = waveHorizontal(uv, 0.02, 10, time)const color = texture(tex, distortedUV)