{
 "id": "radiance-cascades",
 "title": "Radiance Cascades",
 "aliases": [
  "RC",
  "holographic radiance cascades"
 ],
 "domain": "gi",
 "subdomain": "probe-based GI",
 "stage": "lighting",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu"
 ],
 "year_introduced": 2023,
 "inputs": [
  "sdf",
  "gbuffer",
  "radiance"
 ],
 "outputs": [
  "radiance"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "A hierarchical set of probe grids where coarse probes have many angular samples but long ray intervals, and fine probes have few angles but short intervals. Merging them gives noise-free, penumbra-correct GI at fixed cost.",
 "how_it_works": "Radiance cascades exploit the way visual detail trades between space and angle. A small light source needs fine angular resolution but only coarse spatial resolution, because it is far away; a nearby occluder needs fine spatial resolution but little angular detail. Cascade 0 holds a dense grid of probes, each with few directions, tracing only a short **ray interval** (say, the first few pixels). Cascade 1 has a grid four times sparser, each probe with four times as many directions, tracing the *next* interval beyond cascade 0's range, and so on.\n\nThe cascades are evaluated independently, then **merged from coarsest to finest**. A cascade `n` probe's interval radiance is combined with the already-merged radiance from cascade `n+1`: if the ray was blocked, its own result is used; if it reached the interval's end without hitting, the coarser cascade's interpolated radiance is continued. The finest cascade then holds the full radiance field at each pixel.\n\nThe dimension of the work is constant per cascade, so cost is linear in pixels with a fixed angular budget, and penumbrae come out correct and noise-free instead of being sampled stochastically. 3D versions add a fourth dimension of directions and are active research.",
 "when_to_use": "Choose it for 2D games and screen-space or SDF-based 3D GI where you want sharp, noise-free, fully dynamic indirect light with predictable cost.\n\nPrefer [ddgi](ddgi) when you have a hardware ray tracer and a 3D scene with probes on a world grid. Prefer [screen-space-gi](screen-space-gi) when you only need a cheap gather of nearby bounce light in a deferred pipeline. Prefer [lumen-gi](lumen-gi) when you need a production 3D solution. Prefer [light-propagation-volumes](light-propagation-volumes) when you can accept very coarse 3D propagation.",
 "cost": {
  "class": "medium",
  "notes": "Fixed per-pixel work for a given number of cascades; 2D implementations run comfortably in a few milliseconds at 1080p on desktop GPUs, 3D variants are much heavier."
 },
 "failure_modes": [
  "Ringing or banding where probes in neighbouring cascades disagree, especially with visible seams between interval boundaries",
  "Needs a scene representation that can be ray-marched quickly (SDF or screen depth), which limits where it works",
  "Light leaking at thin occluders where an interval ends inside a wall",
  "3D extension is memory- and bandwidth-hungry because directions grow with the cascade level"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2505.02041",
   "type": "paper",
   "title": "Holographic Radiance Cascades for 2D Global Illumination",
   "authors": [
    "Rouli Freeman",
    "Alexander Sannikov",
    "Adrian Margel"
   ],
   "year": 2025,
   "venue": "arXiv preprint (cs.GR)",
   "url": "https://arxiv.org/abs/2505.02041",
   "ids": {
    "arxiv": "2505.02041"
   },
   "license": null,
   "extra": {
    "arxiv_version": "1",
    "category": "cs.GR"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2505.02041",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2505.02041",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2505.02041",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2505.02041",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2505.02041",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "freeman2025holographic"
  },
  {
   "role": "primary",
   "key": "arxiv:2408.14425",
   "type": "paper",
   "title": "Radiance Cascades: A Novel High-Resolution Formal Solution for Multidimensional Non-LTE Radiative Transfer",
   "authors": [
    "Christopher M. J. Osborne",
    "Alexander Sannikov"
   ],
   "year": 2024,
   "venue": "arXiv preprint (astro-ph.SR)",
   "url": "https://arxiv.org/abs/2408.14425",
   "ids": {
    "arxiv": "2408.14425",
    "doi": "10.1093/rasti/rzae062"
   },
   "license": null,
   "extra": {
    "arxiv_version": "1",
    "category": "astro-ph.SR"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2408.14425",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2408.14425",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2408.14425",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2408.14425",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2408.14425",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "osborne2024radiance"
  },
  {
   "role": "primary",
   "key": "gh:raikiri/radiancecascadespaper",
   "type": "code",
   "title": "Raikiri/RadianceCascadesPaper",
   "description": "",
   "authors": [
    "Raikiri"
   ],
   "year": 2024,
   "venue": "GitHub",
   "url": "https://github.com/Raikiri/RadianceCascadesPaper",
   "ids": {
    "repo": "Raikiri/RadianceCascadesPaper"
   },
   "license": "MIT",
   "extra": {
    "stars": 216,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2025-04-29T02:35:30Z",
    "language": "TeX",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/Raikiri/RadianceCascadesPaper",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "raikiri2024raikiri"
  }
 ],
 "presets": [
  {
   "id": "radiance-cascades-live",
   "title": "2D Radiance Cascades — hierarchical interval probe GI with penumbra-correct colored shadows",
   "runtime": "glsl-fragment",
   "params": {
    "CASCADES": 4,
    "RAYS": 24,
    "BASE_INTERVAL": 0.08,
    "FALLOFF": 1.6
   },
   "basis": "original",
   "license_note": "MIT — written for this index",
   "code": "const int CASCADES = 4; // P\nconst int RAYS = 24; // P\nconst float BASE_INTERVAL = 0.08; // P\nconst float FALLOFF = 1.6; // P\n\nfloat sdCircle(vec2 p, vec2 c, float r) { return length(p - c) - r; }\nfloat sdBox(vec2 p, vec2 b) { vec2 d = abs(p) - b; return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0); }\nfloat sdSegment(vec2 p, vec2 a, vec2 b) {\n  vec2 pa = p - a, ba = b - a;\n  float h = clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0);\n  return length(pa - ba * h);\n}\n\nvec4 sampleScene(vec2 p, vec2 orbPos) {\n  float dObs = sdCircle(p, vec2(-0.08, 0.02), 0.11);\n  dObs = min(dObs, sdBox(p - vec2(0.18, 0.18), vec2(0.025, 0.16)));\n  dObs = min(dObs, sdBox(p - vec2(0.18, -0.22), vec2(0.025, 0.14)));\n  vec2 q = p - vec2(-0.22, -0.26);\n  mat2 rot = mat2(0.866, -0.5, 0.5, 0.866);\n  dObs = min(dObs, sdBox(rot * q, vec2(0.14, 0.022)));\n\n  float dE1 = sdCircle(p, orbPos, 0.055);\n  float dE2 = sdSegment(p, vec2(-0.44, -0.18), vec2(-0.44, 0.24)) - 0.022;\n  float dE3 = sdCircle(p, vec2(0.39, -0.02), 0.045);\n\n  float d = min(dObs, min(dE1, min(dE2, dE3)));\n  vec3 em = vec3(0.0);\n  if (dE1 < 0.002) em = vec3(4.2, 2.0, 0.65);\n  else if (dE2 < 0.002) em = vec3(0.45, 2.6, 3.8);\n  else if (dE3 < 0.002) em = vec3(3.4, 0.55, 2.1);\n  return vec4(em, d);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  vec2 orbPos = vec2(0.24 * cos(iTime * 0.65) - 0.06, 0.28 * sin(iTime * 0.52) + 0.05);\n  if (iMouse.z > 0.5 || length(iMouse.xy) > 1.0) {\n    orbPos = (iMouse.xy - 0.5 * iResolution.xy) / iResolution.y;\n  }\n\n  vec4 self = sampleScene(uv, orbPos);\n  if (self.w < 0.0) {\n    vec3 col = length(self.rgb) > 0.01 ? self.rgb : vec3(0.045, 0.05, 0.065);\n    fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n    return;\n  }\n\n  int nCasc = clamp(CASCADES, 1, 6);\n  int nRays = clamp(RAYS, 6, 48);\n  float baseInt = max(BASE_INTERVAL, 0.015);\n  float falloff = max(FALLOFF, 0.1);\n  float jitter = fract(sin(dot(fragCoord, vec2(12.9898, 78.233))) * 43758.5453);\n\n  vec3 radiance = vec3(0.0);\n  for (int r = 0; r < 48; r++) {\n    if (r >= nRays) break;\n    float ang = (float(r) + jitter * 0.35) * (6.2831853 / float(nRays));\n    vec2 dir = vec2(cos(ang), sin(ang));\n    float trans = 1.0;\n    float tStart = 0.004;\n\n    for (int c = 0; c < 6; c++) {\n      if (c >= nCasc || trans < 0.01) break;\n      float segLen = baseInt * pow(2.0, float(c));\n      float tEnd = tStart + segLen;\n      float t = tStart;\n      for (int s = 0; s < 6; s++) {\n        vec4 hit = sampleScene(uv + dir * t, orbPos);\n        if (hit.w < 0.0025) {\n          float att = 1.0 / (1.0 + falloff * t * t * 6.0);\n          radiance += trans * hit.rgb * att;\n          trans = 0.0;\n          break;\n        }\n        t += max(hit.w, segLen * 0.14);\n        if (t > tEnd) break;\n      }\n      tStart = tEnd;\n    }\n    radiance += trans * vec3(0.015, 0.022, 0.04);\n  }\n  radiance /= float(nRays);\n\n  vec2 grid = abs(fract(uv * 16.0 - 0.5) - 0.5) / fwidth(uv * 16.0);\n  float probeDot = smoothstep(0.09, 0.03, length(fract(uv * 12.0) - 0.5));\n  vec3 floorAlbedo = vec3(0.76, 0.78, 0.82) * (1.0 - 0.06 * smoothstep(1.2, 0.0, min(grid.x, grid.y)));\n  vec3 col = radiance * floorAlbedo + probeDot * radiance * 0.12;\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "reduced-sandbox",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "radiance-cascades",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T16:15:34.232Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.3939,
      "std": 0.2422,
      "unique_colors": 885
     },
     "image": "/specimens/radiance-cascades-live.webp",
     "reason": null
    }
   }
  },
  {
   "id": "radiance-cascades-wgsl",
   "title": "2D Radiance Cascades probe marcher (WGSL)",
   "runtime": "webgpu-wgsl",
   "basis": "original",
   "license_note": "written for this index",
   "params": {
    "RAYS": 16,
    "STEP_SCALE": 0.018,
    "LIGHT_GAIN": 1.4
   },
   "code": "// WebGPU WGSL fragment specimen: 2D multi-interval Radiance Cascades approximation\nconst RAYS: i32 = 16; // P\nconst STEP_SCALE: f32 = 0.0180; // P\nconst LIGHT_GAIN: f32 = 1.4000; // P\n\nfn rc_scene(p: vec2f, t: f32) -> vec4f {\n  let e1 = length(p - vec2f(-0.34, 0.16 * sin(t * 0.7))) - 0.11;\n  if (e1 < 0.0) { return vec4f(2.6, 1.35, 0.55, 1.0); }\n  let e2 = length(p - vec2f(0.36, -0.14 * cos(t * 0.6))) - 0.095;\n  if (e2 < 0.0) { return vec4f(0.55, 1.45, 2.7, 1.0); }\n  let b = abs(p - vec2f(0.0, 0.02)) - vec2f(0.055, 0.24);\n  if (max(b.x, b.y) < 0.0) { return vec4f(0.04, 0.045, 0.055, 1.0); }\n  return vec4f(0.0, 0.0, 0.0, 0.0);\n}\n\n@fragment\nfn fs_main(@builtin(position) pos: vec4f) -> @location(0) vec4f {\n  let uv = (pos.xy - 0.5 * u.resolution) / u.resolution.y;\n  let selfHit = rc_scene(uv, u.time);\n  if (selfHit.w > 0.5) {\n    let col = selfHit.xyz / (1.0 + selfHit.xyz);\n    return vec4f(pow(col, vec3f(1.0 / 2.2)), 1.0);\n  }\n  var rad = vec3f(0.0);\n  let tau = 6.2831853;\n  for (var i: i32 = 0; i < RAYS; i = i + 1) {\n    let ang = (f32(i) + 0.5) * tau / f32(RAYS);\n    let rd = vec2f(cos(ang), sin(ang));\n    var s: f32 = 0.012;\n    for (var k: i32 = 0; k < 28; k = k + 1) {\n      let h = rc_scene(uv + rd * s, u.time);\n      if (h.w > 0.5) {\n        rad = rad + h.xyz / (1.0 + s * s * 3.5);\n        break;\n      }\n      s = s + STEP_SCALE * (1.0 + 0.06 * f32(k));\n    }\n  }\n  let linear = (rad / f32(RAYS)) * LIGHT_GAIN;\n  let mapped = linear / (vec3f(1.0) + linear);\n  return vec4f(pow(clamp(mapped, vec3f(0.0), vec3f(1.0)), vec3f(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "faithful-pass",
   "proof": {
    "kind": "wgsl",
    "label": "WebGPU WGSL runtime",
    "ok": true,
    "proof": null
   }
  }
 ],
 "related": [
  "ddgi",
  "screen-space-gi",
  "lumen-gi",
  "voxel-cone-tracing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "screen-space-gi",
   "why": "Screen-space depth and color provide the fast ray-marchable scene that cascades trace through."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/gi/radiance-cascades.json"
 },
 "solves": [
  "need dynamic global illumination without noise",
  "2d game lighting with soft penumbrae",
  "fully dynamic indirect light at fixed cost",
  "screen-space gi flickers and grains",
  "sharp accurate shadows from large lights without baking"
 ],
 "authority": "Freeman et al., 2025",
 "url": "https://texelatlas.vercel.app/t/radiance-cascades/",
 "execution_fidelity": "reduced-sandbox",
 "fidelity_label": "Analytic Sandbox",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 234.65,
  "tier": "extreme",
  "p50_ms": 7.72,
  "p95_ms": 7.8575,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "radiance-cascades-live",
  "execution_fidelity": "reduced-sandbox",
  "fidelity_label": "Analytic Sandbox",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 228.5,
   "tier": "extreme",
   "p50_ms": 3.6332,
   "p95_ms": 3.6756,
   "speedup_x": 2.12,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 137.6,
   "tier": "extreme",
   "p50_ms": 3.9629,
   "p95_ms": 4.022,
   "speedup_x": 1.95,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}