the current renderer instance
Optionaloptions: { color?: number[]; intensity?: number } = {}effect options
Optionalcolor?: number[]flash color as [r, g, b] (0.0–1.0)
Optionalintensity?: numberinitial flash intensity (0.0–1.0)
whether this effect is active (false in Canvas mode)
destroy this shader effect
set the flash color
flash color as [r, g, b] (0.0–1.0)
set the flash intensity
flash intensity (0.0 = no flash, 1.0 = fully colored)
Set the uniform to the given value
the uniform name
the value to assign to that uniform
A shader effect that flashes the sprite with a solid color. Commonly used for hit feedback — flash white when the player takes damage. The
intensityuniform controls how much of the flash color is mixed in (0.0 = original sprite, 1.0 = fully colored).See
Renderable.shader for usage
Example
Example