the current renderer instance
Optionaloptions: { intensity?: number } = {}effect options
Optionalintensity?: numberinversion intensity (0.0 = original, 1.0 = fully inverted)
whether this effect is active (false in Canvas mode)
destroy this shader effect
set the inversion intensity
inversion intensity (0.0 = original, 1.0 = fully inverted)
Set the uniform to the given value
the uniform name
the value to assign to that uniform
A shader effect that inverts the colors of the sprite. Commonly used for damage feedback, negative image, or X-ray effects.
See
Renderable.shader for usage
Example
Example