Lightning Shader Playground

storm-mode: multi-flash bursts + exposure bloom • single-file • WebGL2
Canvas Compiled Keys: S strike • F fullscreen • Space pause
Resolution:
t=0.00 fps≈0 strike=0

Storm tuning: strikes are bursts (1–3 flashes in ~250ms) and the bolt gets a cheap exposure bloom by re-sampling intensity around the pixel. Rate=0 makes it manual-only (use Strike).

Debug / Raw Output
Fragment Shader Edit → Compile
Try: thickness 0.008–0.014 • glow 1.5–2.5 • bloom 0.8–1.8 • bg 0.2–0.4
Heuristic notes
  • Burst flashes: sum of 1–3 quick envelopes at offsets inside a strike window.
  • Bolt: noisy X(y) curve + branches, drawn via distance falloff (core + halo).
  • Bloom: 9-sample neighborhood intensity (single pass, no extra buffers).
  • Cloud light: low-frequency noise mask multiplied by the burst envelope.