the current renderer instance
Optionaloptions: { intensity?: number } = {}effect options
Optionalintensity?: numberdesaturation intensity (0.0 = full color, 1.0 = grayscale)
whether this effect is active (false in Canvas mode)
destroy this shader effect
set the desaturation intensity
desaturation intensity (0.0 = full color, 1.0 = grayscale)
Set the uniform to the given value
the uniform name
the value to assign to that uniform
A shader effect that desaturates (grayscales) the sprite. The
intensityuniform controls how much color is removed (0.0 = full color, 1.0 = fully grayscale). Commonly used for disabled states, death effects, or petrification.See
Renderable.shader for usage
Example
Example