Photosensitive epilepsy warningFlashing images and rapid colour changes. Not suitable for people sensitive to photosensitive epilepsy.
This version
The blitter copy as two textures that swap every frame. Red, green and blue are zoomed by slightly different amounts and the copy is gently warped, so the trails split into rainbow halos.
How this version works
Two 384 by 384 RGBA textures alternate as the source and destination of a feedback shader. The shader rotates and sinusoidally distorts the sampling coordinates, then enlarges red by 4.5%, green by 3.5% and blue by 2.5%, producing separated colour trails. Previous colour is multiplied by 0.985 before three soft orbiting seeds and a pulsating ring are added and clamped. Linear texture filtering smooths repeated copies, and a separate display pass presents the result with aspect-correct coordinates and a mild vignette.
The trick in this version
Framebuffer ping-pong keeps the texture being sampled separate from the texture being rendered into. Unlike the indexed CPU versions, fading and colour separation operate directly on RGB channels, with edge-clamped texture sampling.
Historical context · GPU
2023 · Alia
Kaoticat
A fantasy-console 256-byte take, proof that the feedback idea needs almost no code.
- Platform
- WebGL · two framebuffers
- Era
- GPU
- Rendered on
- GPU
- Tags
- render to texture · chromatic split
- Sources
- Kaoticat (2023)