Blur Trail Video

group .........
3D and WebGL scenes
markdown ......
/lab/blur-trail-video.md
human .........
/lab/blur-trail-video

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

A full-bleed video that blurs and splits into red and blue wherever the pointer has just moved, then sharpens again as the trail fades over about a second. An eased brush paints a float mask each frame, and the mask mixes the plain video with an RGB-shifted, 35-tap Gaussian blur of it. Ported from the seitaroyamazaki.com hero in WebGL2, so it runs without WebGPU.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * The trail is a float mask

    Each frame adds a soft brush at the eased pointer and multiplies the previous mask by 0.92, so a stroke fades over about 50 frames. The brush only paints while the follower trails the pointer by more than 3px, so a resting cursor leaves nothing behind.

  • * Blur in linear light

    The video is decoded to linear, shifted by 0.03 UV at 45 degrees per channel, blurred by a 35-tap Gaussian in two passes, mixed by the mask and encoded back to sRGB. Blur taps step in drawing-buffer pixels, so on a 2x display the blur covers half as many CSS pixels, as it does on the source.

  • * Frame-rate dependent, like the source

    Decay and easing are per frame. On a 120Hz display the trail fades twice as fast, which matches the original site.