the current renderer instance
Optionaloptions: { amplitude?: number; frequency?: number; speed?: number } = {}effect options
Optionalamplitude?: numberwave displacement strength (in UV space, 0.01 = subtle)
Optionalfrequency?: numbernumber of waves across the sprite
Optionalspeed?: numberwave animation speed
destroy this shader effect
set the wave amplitude
displacement strength in UV space
set the wave frequency
number of waves
set the current time (call each frame for animation)
time in seconds
Set the uniform to the given value
the uniform name
the value to assign to that uniform
A shader effect that applies a sine wave distortion to the sprite. Commonly used for underwater, heat haze, or dream sequence effects. The
timeuniform should be updated each frame for animation.See
Renderable.shader for usage
Example