Photosensitive epilepsy warningFlashing images and rapid colour changes. Not suitable for people sensitive to photosensitive epilepsy.

Chaos zoomer

Version 6 of 6

Shader Showdown zoom.

WebGL · single pass · 2020s

This version

No memory of the last frame at all. A log-polar trick turns zoom into a scroll and a twelve-step fold builds the fractal core, so the zoom never ends and never blurs.

How this version works

This single-pass shader calculates every pixel afresh at the display resolution, with no previous-frame buffer. It converts radius to a logarithm, scrolls it over time and wraps it over a factor-of-four interval, while also advancing the polar angle. Twelve iterations rotate, fold with absolute values, enlarge and offset the resulting coordinates, tracking proximity to a horizontal axis and a circle. Those minimum distances create narrow coloured features, using an averaged cosine palette and a pink ring contribution. A radial mask darkens the centre, followed by a power adjustment to the output colour.

The trick in this version

Logarithmic radius turns multiplicative zoom into additive scrolling, and modular wrapping bounds the sampled scale range. Recomputing the folds in a fragment shader avoids accumulated resampling blur and removes the need for feedback textures.

Historical context · GPU

  1. 2023 · Alia

    Kaoticat

    A fantasy-console 256-byte take, proof that the feedback idea needs almost no code.

Platform
WebGL · single pass
Era
GPU
Rendered on
GPU
Tags
log-polar · IFS fold · live coding
Sources
Kaoticat (2023)