Skip to content

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

uv

Node<"vec2">

Input UV coordinates

center

Vec2Input = ...

Center point of the ripple

amplitude

FloatInput = 0.03

Wave amplitude

frequency

FloatInput = 20

Wave frequency

time

FloatInput = 0

Animation time (controls ripple expansion)

decay

FloatInput = 2

How quickly ripples fade with distance (default: 2)

speed

FloatInput = 1

Animation speed

Returns

Node<"vec2">

Distorted UV coordinates

Example

// Ripple from click position
const distortedUV = waveRipple(uv, clickPos, 0.05, 20, time, 3)