C:\PROJECTS\RADIANCE-CASCADES\README.DOCPY/WGSL · LIVE DEMO
MOVE OR ARROW KEYS TO STEER · CLICK OR ENTER TO DROP ONE (MAX 3)LIGHTS 1 · CELLS 7,840 · FRAME - MS
SCENE
PROBES

Turn on a cascade level to see its probes and their ray intervals.

RADIANCE CASCADES

Real-time 2D global illumination

I implemented Radiance Cascades from the original paper: a NumPy reference on the CPU first, then a GPU renderer with hand-written WGSL shaders.

PIPELINE

  1. [1]SEEDwrite scene radiance into the cascades
  2. [2]BUILDhierarchy of cascades, sparser probes and more directions per level
  3. [3]MERGEfold levels together with trilinear interpolation over position and angle

ARCHITECTURE

A small render graph over reusable texture, buffer and GPU-context pieces, so passes compose and swap independently.

The demo on the left is a CPU ray march, so it runs in any browser. The real cascades live in the repo.

PYTHONWGPUWGSLNUMPY