the current renderer instance
Optionaloptions: { color?: number[]; intensity?: number; speed?: number } = {}effect options
Optionalcolor?: number[]pulse color as [r, g, b] (0.0–1.0)
Optionalintensity?: numbermaximum tint strength (0.0–1.0)
Optionalspeed?: numberpulse speed (oscillations per second)
destroy this shader effect
set the pulse color
pulse color as [r, g, b] (0.0–1.0)
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 pulses a color overlay on the sprite. Commonly used for status effects — poison green, freeze blue, fire red. The
timeuniform should be updated each frame for the pulse animation.See
Renderable.shader for usage
Example