Post-processing effects like bloom, chromatic aberration, and CRT scanlines
The Effects API provides stunning post-processing effects to enhance your game's visual style, from retro CRT effects to modern bloom and color grading.
Enables bloom glow effect.
enableBloom(1.5, 0.7); // Strong bloom effect
Enables RGB color split effect.
enableChromaticAberration(0.005);
Enables screen glitch post-processing effect with scanline displacement, RGB channel split, block artifacts, and random color corruption. Great for damage feedback or digital distortion effects.
// Trigger glitch on damage, then fade out
enableGlitch(0.6);
// Later, adjust intensity
setGlitchIntensity(0.2);
// When done
disableGlitch();
Disables the screen glitch effect.
Adjusts glitch intensity without recreating the shader pass. Useful for smooth fade-out effects.
Enables CRT scanline effect.
enableScanlines(0.5); // Retro CRT look