waveRipple
waveRipple(
uv,center?,amplitude?,frequency?,time?,decay?,speed?):Node<"vec2">
Defined in: packages/nodes/src/distortion/wave.ts:123
Apply ripple distortion from a point (like a droplet in water). Creates expanding circular waves that fade with distance.
Parameters
Section titled “Parameters”Node <"vec2">
Input UV coordinates
center?
Section titled “center?”Vec2Input = ...
Center point of the ripple
amplitude?
Section titled “amplitude?”FloatInput = 0.03
Wave amplitude
frequency?
Section titled “frequency?”FloatInput = 20
Wave frequency
FloatInput = 0
Animation time (controls ripple expansion)
decay?
Section titled “decay?”FloatInput = 2
How quickly ripples fade with distance (default: 2)
speed?
Section titled “speed?”FloatInput = 1
Animation speed
Returns
Section titled “Returns”Node <"vec2">
Distorted UV coordinates
Example
Section titled “Example”// Ripple from click positionconst distortedUV = waveRipple(uv, clickPos, 0.05, 20, time, 3)