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
uv
Node<"vec2">
Input UV coordinates
amplitude
FloatInput = 0.02
Wave amplitude in UV space (default: 0.02)
frequency
FloatInput = 10
Wave frequency (default: 10)
time
FloatInput = 0
Animation time for moving waves
speed
FloatInput = 1
Animation speed multiplier (default: 1)
Returns
Node<"vec2">
Distorted UV coordinates
Example
const distortedUV = waveHorizontal(uv, 0.02, 10, time)const color = texture(tex, distortedUV)