Skip to content

wave

const wave: EffectDefinition<WaveHandle, WaveOptions>

Defined in: effects/src/wave.ts:194

Sinusoidal horizontal-wave distortion — the classic underwater / heat-haze shimmer. Built from scratch via a custom WebGL+WebGPU shader pair, with a scene-time animator scheduled through the engine’s process scheduler so the wave pauses with the owning scene and time-scales with it.

setIntensity scales amplitude from 0 to the configured value so fadeIn ramps the shimmer in cleanly. Reach for setAmplitude / setWavelength / setSpeed to tune the look at runtime.