How it works

How it works

A sheet of paper lies over an editorial hero, its headline faintly embossed into the sheet. Wherever the cursor touches it, the sheet ignites. A thin blackbody-orange ember line creeps outward through the fibres, scorching the paper ahead of it and leaving curled black char behind, until the sheet burns through and the page beneath shows. Once the fire is out and the cursor has moved on, the burn plays backwards and the sheet heals. The one idea that makes it work is that the fire is a travel-time field, not a grid of on/off cells. Every cell stores how long ago the front reached it, so the burning edge is a level set that can be drawn at full resolution from a simulation a third that size. The other half of the job is keeping that field clean where fires overlap and heal, so a filtered burn-depth pass sits between the simulation and everything that draws it.

Pipeline (per frame)

pointer (window, passive) ─▶ capsule from last frame's position to this one, sub-frame timed
  │
  ├─ CLOCK      heal clock  a ← min(a + dt, neighbours + k·dist,         RG32F     871×490   NEAREST, texelFetch only
  │                                 time since this cell's burn ended, cursor cone)
  │             reheat clock g ← min(g + dt, steep cone around the cursor)
  ├─ STATE ×1–4 relax τ against 16 neighbours (8 + knight moves)          RGBA32F   871×490   ping-pong: τ arrival (s), e reach,
  │             + brush (ignite / predict, directional) + heal (sub-frame)                     H heal 0..1, fire id
  │             + settled-depth erosion + reach cap under the HUD row
  │               └ reads MEDIUM  speed, fuel cost, grain cos2θ/sin2θ      RGBA16F   871×490   rebuilt only when fibre params change
  ├─ BURN       b = min(τ·v, min(e, R)) − S·H, clamped to the visible     RGBA16F   871×490   b, ember temperature θ, heal H,
  │             band, 3×3 binomial; θ and H through the same filter                 pointer reheat (only reader of raw state)
  ├─ SPARKS     respawn by rejection sampling on the hot front            RGBA32F   64×64     4096 particles (uv, age, seed)
  ├─ EMIT       blackbody(θ·Tpeak)·θ⁴ ember light | α = paper coverage     RGBA16F   1280×720
  │  └ sparks   soft capsule quads, additive (alpha untouched)            → EMIT
  ├─ BLOOM      5× down (5 taps) → 4× up (8 taps of the lower level       RGBA16F   640×360 … 40×23
  │             + 1 of the higher); α carries a multi-scale blur of the coverage (shadow mask)
  ├─ DISPLAY    paper tile + embossed headline ─ scorch ─ lit char lip    canvas    2560×1440
  │             ─ page beneath (soft shadow, heat haze, warm light at the cursor) ─ ember line ─ bloom ─ shoulder ─ sRGB ─ dither
  │               ├ BURN via cubic B-spline (4 bilinear taps); pixels deep inside a hole take a short path
  │               ├ paper tile: 2D canvas, fibres + formation + grain      RGBA8 1024² tileable, mipmapped
  │               ├ page: 2D canvas editorial layout                       SRGB8_ALPHA8 2560×1440 (sampled linear)
  │               ├ headline mask: same layout, headline only               R8 1280×720, mipmapped (the mips are the bevel)
  │               └ blackbody LUT (Krystek 1985, 500–4000 K)               RGBA16F 256×1
  └─ SPARKS     soft capsule quads, additive, on top                      canvas

The ideas that matter

Parameters

Presets

Performance & compatibility

References & credits