the current renderer instance
Optionaloptions: { size?: number; textureSize?: number[] } = {}effect options
Optionalsize?: numberpixel size in texels (higher = more pixelated)
OptionaltextureSize?: number[]texture dimensions [width, height]
whether this effect is active (false in Canvas mode)
destroy this shader effect
set the pixel size
pixel size in texels
set the texture size
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
A shader effect that pixelates the sprite by snapping UV coordinates to a grid. Commonly used for teleport effects, transitions, or retro styling.
See
Renderable.shader for usage
Example
Example