the current renderer instance
Optionaloptions: { color?: number[]; textureSize?: number[]; width?: number } = {}effect options
Optionalcolor?: number[]outline color as [r, g, b] (0.0–1.0)
OptionaltextureSize?: number[]texture dimensions [width, height] (defaults to renderer size)
Optionalwidth?: numberoutline width in pixels
destroy this shader effect
set the outline color
outline color as [r, g, b] (0.0–1.0)
set the texture size for accurate outline width calculation
texture width in pixels
texture height in pixels
Set the uniform to the given value
the uniform name
the value to assign to that uniform
set the outline width
outline width in pixels
A shader effect that draws a colored outline around the sprite. Works by sampling neighboring pixels — if any neighbor is opaque but the current pixel is transparent, it draws the outline color. Commonly used for selection highlights, hover states, or collectible glow.
See
Renderable.shader for usage
Example
Example