Skip to content

crt

const crt: EffectDefinition<EffectHandle, CRTOptions>

Defined in: effects/src/crt.ts:37

Authentic CRT-monitor look: scanlines, screen curvature, noise, and a subtle vignette. The handle’s noise animator self-schedules through the engine’s process scheduler on attach — no caller-side step(dt) wiring required, the noise pauses with the owning scene and time-scales with it.

setIntensity scales the filter’s overall contribution via filter.alpha so all four CRT knobs (scanlines, curvature, noise, vignette) breathe together — pulsing or fading touches the whole look, not just one uniform. setIntensity(0) makes the filter invisible (the underlying pass still runs; remove the effect to drop the cost).