← ALL EXPERIMENTS
/07EXPERIMENT
Light Trails
Paint long-exposure streaks of coloured light with the cursor — feedback buffers plus bloom.
MOVE THE CURSOR FAST FOR LONG STREAKS, SLOW FOR SOFT GLOW. IDLE AND IT PAINTS ON ITS OWN.
/01HOW IT WORKS
Two half-resolution float buffers ping-pong every frame: the previous frame is faded and zoomed out slightly (so trails smear outward), then three glowing strands are drawn along the segment the cursor just travelled, each in its own hue. Bloom makes the bright cores bleed, and the canvas is screened over a blurred photograph for the long-exposure look.
- Ping-pong render targets
- GLSL
- Bloom post-processing