the current renderer instance
Optionaloptions: { curvature?: number; opacity?: number; vignetteStrength?: number } = {}effect options
Optionalcurvature?: numberbarrel distortion strength (0.0 = flat, 0.02 = subtle CRT curve)
Optionalopacity?: numberscanline darkness (0.0 = invisible, 1.0 = fully black lines)
OptionalvignetteStrength?: numberedge darkening strength (0.0 = none, 0.3 = subtle)
destroy this shader effect
set the barrel curvature strength
distortion amount (0.0 = flat)
set the scanline opacity
scanline darkness (0.0–1.0)
Set the uniform to the given value
the uniform name
the value to assign to that uniform
set the vignette strength
edge darkening (0.0 = none)
A shader effect that overlays horizontal scanlines on the sprite. Can optionally add barrel distortion and vignette for a full CRT monitor look.
See
Renderable.shader for usage
Example
Example