the current renderer instance
Optionaloptions: { offset?: number; textureSize?: number[] } = {}effect options
Optionaloffset?: numberchannel offset in texels
OptionaltextureSize?: number[]texture dimensions [width, height]
whether this effect is active (false in Canvas mode)
destroy this shader effect
set the channel offset
offset 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 offsets the RGB color channels to create a chromatic aberration (color fringe) effect. Commonly used for impact feedback, glitch effects, or damage indicators.
See
Renderable.shader for usage
Example
Example