{
 "id": "multiscale-diffusive-volumetric-fire-irradiance",
 "title": "Multi-Scale 3D Diffusive Volumetric Irradiance",
 "aliases": [
  "diffusive fire light volumes",
  "multi-scale volumetric light diffusion",
  "volumetric fire irradiance grid"
 ],
 "domain": "gi",
 "subdomain": "volumetric lighting & GI",
 "stage": "lighting",
 "realtime": "realtime",
 "platforms": [
  "webgpu",
  "desktop-gpu"
 ],
 "year_introduced": 1995,
 "inputs": [
  "volume-density",
  "voxels",
  "normals"
 ],
 "outputs": [
  "irradiance-probes",
  "radiance"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Propagates emissive fire radiance through 3D smoke and surrounding surfaces by iterating extinction-attenuated diffusion across nested coarse voxel grids, deriving dominant fire direction from the volume gradient without shadow maps.",
 "how_it_works": "Physically accurate multiple scattering inside dense fire and soot plumes is expensive to ray-trace in real time. Treating diffuse radiative transport as a **3D diffusion process** (Stam 1995; Koerner et al. 2014) turns volumetric self-illumination into a fast grid relaxation pass: each voxel injects local blackbody or flame emission and updates its stored irradiance as an extinction-attenuated average of its six face neighbors.\n\nOn a single grid, explicit diffusion advances only one cell per iteration, and per-step attenuation `l` caps effective reach to roughly `h * sqrt(1 / (6 * l))` world units. **Multi-scale diffusive irradiance** solves this by running nested lower-resolution 3D light volumes in parallel—for example, a quarter-resolution near field with soot absorption for tight inner-plume glow, paired with an eighth-resolution far field with minimal loss and open-boundary decay so warm firelight reaches distant terrain and cliffs in just a few compute dispatches.\n\nOpaque scene geometry (ground, cliffs, shields) and the volume ray-marcher both trilinearly sample these grids. Taking finite differences of the coarse light volume supplies an approximate **dominant light direction** per point, letting normal-mapped surfaces react to moving flames with no point-light proxies or shadow passes.",
 "when_to_use": "Choose it for real-time GPU fluid fire, explosions, and lava plumes where flames must self-illuminate billowing smoke and cast soft, temporally coherent bounce light onto nearby terrain without spawning dozens of proxy lights.\n\nPrefer [light-propagation-volumes](light-propagation-volumes) when propagating directional sunlight bounces across solid architecture using spherical harmonics. Prefer [froxel-volumetric-fog](froxel-volumetric-fog) when external spotlights and shadow maps dominate scattering in view-frustum fog. Prefer [delta-tracking](delta-tracking) offline for unbiased heterogeneous multi-scattering.",
 "cost": {
  "class": "cheap",
  "notes": "Runs as a handful of 3D compute shader Jacobi/diffusion passes over quarter- and eighth-resolution grids, typically a fraction of the underlying fluid simulation cost."
 },
 "failure_modes": [
  "Isotropic diffusion blurs out crisp directional shafts and hard occlusion edges behind solid obstacles unless solid blocker terms or flux limiters are injected",
  "Insufficient iteration count causes temporal lag as bright flame pulses ripple across the coarse grid over several frames",
  "Clamped boundary conditions reflect light back into the domain at grid edges, producing artificial glow near the bounding box unless open-face decay is applied",
  "Coarse-grid gradient directionality degrades when multiple equally bright fire lobes surround a surface, causing flattened normal-map response"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1007/978-3-7091-9430-0_5",
   "type": "chapter",
   "title": "Multiple scattering as a diffusion process",
   "authors": [
    "Jos Stam"
   ],
   "year": 1995,
   "venue": "Eurographics",
   "url": "https://doi.org/10.1007/978-3-7091-9430-0_5",
   "ids": {
    "doi": "10.1007/978-3-7091-9430-0_5"
   },
   "license": null,
   "extra": {
    "csl_type": "book-chapter"
   },
   "provenance": {
    "title": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1007/978-3-7091-9430-0_5 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1007/978-3-7091-9430-0_5 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1007/978-3-7091-9430-0_5 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1007/978-3-7091-9430-0_5 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1007/978-3-7091-9430-0_5 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "stam1995multiple"
  },
  {
   "role": "primary",
   "key": "doi:10.1111/cgf.12342",
   "type": "paper",
   "title": "Flux‐Limited Diffusion for Multiple Scattering in Participating Media",
   "authors": [
    "D. Koerner",
    "J. Portsmouth",
    "F. Sadlo",
    "T. Ertl",
    "B. Eberhardt"
   ],
   "year": 2014,
   "venue": "Computer Graphics Forum",
   "url": "https://doi.org/10.1111/cgf.12342",
   "ids": {
    "doi": "10.1111/cgf.12342"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/cgf.12342",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/cgf.12342",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/cgf.12342",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/cgf.12342",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/cgf.12342",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "koerner2014flux"
  },
  {
   "role": "secondary",
   "key": "doi:10.1145/566654.566643",
   "type": "paper",
   "title": "Physically based modeling and animation of fire",
   "authors": [
    "Duc Quang Nguyen",
    "Ronald Fedkiw",
    "Henrik Wann Jensen"
   ],
   "year": 2002,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/566654.566643",
   "ids": {
    "doi": "10.1145/566654.566643"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1145/566654.566643 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1145/566654.566643 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1145/566654.566643 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1145/566654.566643 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1145/566654.566643 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "nguyen2002physically"
  },
  {
   "role": "implementation",
   "key": "gh:lejrimostfa/force-field-vfx-threejs",
   "type": "code",
   "title": "lejrimostfa/force-field-vfx-threejs",
   "description": "Real-time 3D fire and smoke on three.js WebGPU: a force field VFX solved in the browser.",
   "authors": [
    "lejrimostfa"
   ],
   "year": 2026,
   "venue": "GitHub",
   "url": "https://github.com/lejrimostfa/force-field-vfx-threejs",
   "ids": {
    "repo": "lejrimostfa/force-field-vfx-threejs"
   },
   "license": "MIT",
   "extra": {
    "stars": 30,
    "stars_checked": "2026-11-30",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-30T10:23:01Z",
    "language": "JavaScript",
    "homepage": "https://lejrimostfa.github.io/force-field-vfx-threejs/",
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/lejrimostfa/force-field-vfx-threejs",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": null,
   "__bib": "lejrimostfa2026lejrimostfa"
  }
 ],
 "presets": [
  {
   "id": "multiscale-diffusive-volumetric-fire-irradiance-live",
   "title": "Multi-Scale Diffusive Volumetric Fire Irradiance — nested 3D diffusion grid (left) vs fire-lit smoke & ruins (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_FIRE_POWER": 1.35,
    "P_SMOKE_DENS": 1.1,
    "P_DIFFUSE_RAD": 0.78,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_FIRE_POWER = 1.35; // P Fire Emission [0.4, 2.5, 0.1]\nconst float P_SMOKE_DENS = 1.10; // P Smoke Density [0.3, 2.2, 0.1]\nconst float P_DIFFUSE_RAD = 0.78; // P Diffusion Spread [0.25, 1.4, 0.05]\nconst float P_SPLIT = 0.48; // P Grid / Lit Split [0.0, 1.0, 0.02]\n\nfloat hash31(vec3 p) {\n  p = fract(p * vec3(127.1, 311.7, 74.7));\n  p += dot(p, p.yzx + 19.19);\n  return fract((p.x + p.y) * p.z);\n}\n\nfloat noise3(vec3 p) {\n  vec3 i = floor(p);\n  vec3 f = fract(p);\n  f = f * f * (3.0 - 2.0 * f);\n  return mix(\n    mix(mix(hash31(i), hash31(i + vec3(1.0, 0.0, 0.0)), f.x),\n        mix(hash31(i + vec3(0.0, 1.0, 0.0)), hash31(i + vec3(1.0, 1.0, 0.0)), f.x), f.y),\n    mix(mix(hash31(i + vec3(0.0, 0.0, 1.0)), hash31(i + vec3(1.0, 0.0, 1.0)), f.x),\n        mix(hash31(i + vec3(0.0, 1.0, 1.0)), hash31(i + vec3(1.0, 1.0, 1.0)), f.x), f.y),\n    f.z\n  );\n}\n\nfloat fbm3(vec3 p) {\n  float v = 0.0, a = 0.5;\n  for (int i = 0; i < 4; i++) {\n    v += a * noise3(p);\n    p *= 2.04;\n    a *= 0.5;\n  }\n  return v;\n}\n\nfloat sdBox(vec3 p, vec3 b) {\n  vec3 q = abs(p) - b;\n  return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0);\n}\n\n// Stone ruins & brazier surrounding the roaring volumetric fire\nvec2 mapRuins(vec3 p) {\n  float dFloor = p.y + 0.65;\n  vec2 res = vec2(dFloor, 1.0);\n  // Stone pillar left & right archway\n  float dP1 = sdBox(p - vec3(-0.98, 0.15, -0.35), vec3(0.22, 0.85, 0.24));\n  float dP2 = sdBox(p - vec3(0.98, 0.15, -0.35), vec3(0.22, 0.85, 0.24));\n  float dLint = sdBox(p - vec3(0.0, 0.92, -0.35), vec3(1.22, 0.14, 0.28));\n  float dArch = min(min(dP1, dP2), dLint);\n  if (dArch < res.x) res = vec2(dArch, 2.0);\n  // Stone fire pit rim\n  float dPit = max(abs(length(p.xz) - 0.44) - 0.08, abs(p.y + 0.56) - 0.11);\n  if (dPit < res.x) res = vec2(dPit, 2.0);\n  return res;\n}\n\nvec3 calcNormal(vec3 p) {\n  vec2 e = vec2(0.003, 0.0);\n  return normalize(vec3(\n    mapRuins(p + e.xyy).x - mapRuins(p - e.xyy).x,\n    mapRuins(p + e.yxy).x - mapRuins(p - e.yxy).x,\n    mapRuins(p + e.yyx).x - mapRuins(p - e.yyx).x\n  ));\n}\n\n// Evaluate rising fire temperature & billowing smoke density at 3D point p\nvoid evalFireSmoke(vec3 p, float sDens, out float fireT, out float smokeD) {\n  vec3 flow = p - vec3(0.0, iTime * 1.15, 0.0);\n  float n = fbm3(flow * 2.6);\n  float r = length(p.xz + vec2(0.12 * sin(p.y * 3.0 - iTime * 2.4), 0.0));\n  float yNorm = clamp((p.y + 0.58) / 1.45, 0.0, 1.0);\n  float coreRad = mix(0.36, 0.06, pow(yNorm, 0.72));\n  fireT = clamp((1.0 - r / max(coreRad, 0.04)) + (n - 0.42) * 0.85, 0.0, 1.0) * smoothstep(0.0, 0.12, yNorm) * smoothstep(0.75, 0.25, yNorm);\n\n  float smokeRad = mix(0.32, 0.74, yNorm);\n  float rawSmoke = clamp((1.0 - r / smokeRad) + (n - 0.45) * 0.95, 0.0, 1.0) * smoothstep(0.08, 0.32, yNorm) * smoothstep(1.0, 0.72, yNorm);\n  smokeD = rawSmoke * sDens;\n}\n\n// Multi-scale 3D diffusive fire irradiance field across 3 nested Gaussian/Yukawa diffusion scales (L0 fine, L1 mid, L2 coarse)\nvec3 evalDiffusiveIrradiance(vec3 p, float firePow, float diffRad) {\n  vec3 fCore = vec3(0.04 * sin(iTime * 4.5), -0.22 + 0.05 * cos(iTime * 3.7), 0.0);\n  vec3 fMid = vec3(-0.03 * cos(iTime * 3.1), 0.05, 0.0);\n  float d0 = length(p - fCore);\n  float d1 = length(p - fMid);\n  // 3 nested extinction-attenuated diffusion scales\n  float L0 = exp(-d0 * d0 / max(0.08 * diffRad * diffRad, 0.01));\n  float L1 = exp(-d1 / max(0.42 * diffRad, 0.05));\n  float L2 = exp(-d1 / max(1.15 * diffRad, 0.1));\n  float flicker = 0.88 + 0.12 * sin(iTime * 9.3) * cos(iTime * 5.7);\n  vec3 col0 = vec3(2.8, 1.65, 0.52) * L0;\n  vec3 col1 = vec3(1.6, 0.58, 0.14) * L1 * 0.65;\n  vec3 col2 = vec3(0.68, 0.20, 0.06) * L2 * 0.42;\n  return (col0 + col1 + col2) * firePow * flicker;\n}\n\nvec3 blackbody(float t) {\n  t = clamp(t, 0.0, 1.0);\n  return mix(vec3(0.95, 0.16, 0.02), mix(vec3(1.0, 0.58, 0.10), vec3(1.0, 0.95, 0.78), smoothstep(0.45, 0.92, t)), smoothstep(0.05, 0.55, t));\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  float sx = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  bool showFinal = sx >= split;\n\n  float firePow = clamp(P_FIRE_POWER, 0.3, 2.8);\n  float sDens = clamp(P_SMOKE_DENS, 0.2, 2.6);\n  float diffRad = clamp(P_DIFFUSE_RAD, 0.2, 1.6);\n\n  vec3 ro = vec3(0.28 * sin(iTime * 0.25), 0.18, 2.28);\n  vec3 ta = vec3(0.0, 0.04, -0.15);\n  vec3 fw = normalize(ta - ro);\n  vec3 ri = normalize(cross(fw, vec3(0.0, 1.0, 0.0)));\n  vec3 up = cross(ri, fw);\n  vec3 rd = normalize(fw * 1.42 + ri * uv.x + up * uv.y);\n\n  vec3 bg = mix(vec3(0.02, 0.025, 0.045), vec3(0.05, 0.07, 0.12), smoothstep(-0.2, 0.6, rd.y));\n  vec3 col = bg;\n\n  // March solid ruins first\n  float tSolid = 0.05;\n  float hitId = 0.0;\n  for (int i = 0; i < 56; i++) {\n    vec2 h = mapRuins(ro + rd * tSolid);\n    if (h.x < 0.0025) { hitId = h.y; break; }\n    tSolid += h.x;\n    if (tSolid > 8.0) break;\n  }\n\n  if (hitId > 0.5) {\n    vec3 p = ro + rd * tSolid;\n    vec3 n = calcNormal(p);\n    vec3 alb = (hitId < 1.5) ? vec3(0.26, 0.24, 0.22) : vec3(0.42, 0.40, 0.38);\n\n    // Derive dominant fire direction directly from gradient of diffusive irradiance volume (no shadow maps!)\n    float e = 0.05;\n    float iC = dot(evalDiffusiveIrradiance(p, firePow, diffRad), vec3(0.3, 0.6, 0.1));\n    vec3 gradI = vec3(\n      dot(evalDiffusiveIrradiance(p + vec3(e, 0.0, 0.0), firePow, diffRad), vec3(0.3, 0.6, 0.1)) - iC,\n      dot(evalDiffusiveIrradiance(p + vec3(0.0, e, 0.0), firePow, diffRad), vec3(0.3, 0.6, 0.1)) - iC,\n      dot(evalDiffusiveIrradiance(p + vec3(0.0, 0.0, e), firePow, diffRad), vec3(0.3, 0.6, 0.1)) - iC\n    );\n    vec3 fireDir = normalize(gradI + vec3(1e-5));\n    vec3 irr = evalDiffusiveIrradiance(p, firePow, diffRad);\n    float ndl = 0.35 + 0.65 * max(dot(n, fireDir), 0.0);\n\n    if (showFinal) {\n      col = alb * (irr * ndl + vec3(0.04, 0.06, 0.10) * (0.5 + 0.5 * n.y));\n    } else {\n      // Left: Quantized multi-scale nested 3D voxel diffusion grid visualization\n      float distC = length(p.xz);\n      float voxRes = (distC < 0.75) ? 9.0 : 4.5;\n      vec3 qP = (floor(p * voxRes) + 0.5) / voxRes;\n      vec3 qIrr = evalDiffusiveIrradiance(qP, firePow, diffRad);\n      vec3 fc = abs(fract(p * voxRes) - 0.5);\n      float gridE = smoothstep(0.055, 0.015, min(min(0.5 - fc.x, 0.5 - fc.y), 0.5 - fc.z));\n      vec3 tierCol = (distC < 0.75) ? vec3(1.0, 0.85, 0.25) : vec3(0.22, 0.88, 1.0);\n      col = qIrr * 0.92 + tierCol * gridE * 0.35;\n    }\n  }\n\n  // Volumetric raymarch through fire & smoke plume in front of solid surface\n  float tStart = max(0.85, 0.05);\n  float tEnd = min(tSolid, 3.6);\n  if (tEnd > tStart) {\n    float trans = 1.0;\n    vec3 volAcc = vec3(0.0);\n    const int STEPS = 32;\n    float dt = (tEnd - tStart) / float(STEPS);\n    for (int i = 0; i < STEPS; i++) {\n      float tm = tStart + (float(i) + 0.5) * dt;\n      vec3 mp = ro + rd * tm;\n      if (abs(mp.x) < 0.9 && mp.y > -0.62 && mp.y < 0.95 && abs(mp.z) < 0.9) {\n        float fT, sD;\n        evalFireSmoke(mp, sDens, fT, sD);\n        if (fT > 0.02 || sD > 0.02) {\n          vec3 radVol = evalDiffusiveIrradiance(mp, firePow, diffRad);\n          vec3 emit = blackbody(fT) * pow(fT, 1.6) * firePow * 4.8;\n          vec3 scatter = radVol * vec3(0.45, 0.42, 0.40) * sD * 1.4;\n          if (!showFinal) {\n            // Left: Show quantized 3D voxel blocks of the fire diffusion cascade inside the plume\n            vec3 qP = (floor(mp * 9.0) + 0.5) / 9.0;\n            vec3 qRad = evalDiffusiveIrradiance(qP, firePow, diffRad);\n            scatter = qRad * sD * 1.35;\n          }\n          float ext = sD * 2.6 + fT * 0.8;\n          float stepT = exp(-ext * dt);\n          volAcc += trans * (emit + scatter) * dt;\n          trans *= stepT;\n          if (trans < 0.02) break;\n        }\n      }\n    }\n    col = col * trans + volAcc;\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(sx - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\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": "multiscale-diffusive-volumetric-fire-irradiance",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:16.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.3281,
      "std": 0.2074,
      "min": 0.0408,
      "max": 0.9456
     },
     "image": "/specimens/multiscale-diffusive-volumetric-fire-irradiance-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "light-propagation-volumes",
  "froxel-volumetric-fog",
  "volume-ray-marching",
  "irradiance-volumes",
  "voxel-cone-tracing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "volume-ray-marching",
   "why": "Samples the near-field diffused irradiance grid at each march step to shade dense smoke illuminated by internal flames."
  },
  {
   "id": "stable-fluids",
   "why": "Consumes the advected 3D temperature and soot density fields from the gas solver as emission and extinction sources."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-30T17:59:51.239Z",
  "draft": "data/drafts/gi/multiscale-diffusive-volumetric-fire-irradiance.json"
 },
 "solves": [
  "fire and explosions do not illuminate surrounding smoke convincingly",
  "ray marching multi-bounce emissive volume lighting is too slow",
  "need soft glow spreading from flames into nearby dust clouds",
  "approximate volumetric indirect light on a 3d grid in real time",
  "emissive fluid sim looks flat without internal scattering irradiance"
 ],
 "authority": "Stam, 1995",
 "url": "https://texelatlas.vercel.app/t/multiscale-diffusive-volumetric-fire-irradiance/",
 "execution_fidelity": "reduced-sandbox",
 "fidelity_label": "Analytic Sandbox",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 203.68,
  "tier": "extreme",
  "p50_ms": 6.701,
  "p95_ms": 6.7404,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "multiscale-diffusive-volumetric-fire-irradiance-live",
  "execution_fidelity": "reduced-sandbox",
  "fidelity_label": "Analytic Sandbox",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 192.79,
   "tier": "extreme",
   "p50_ms": 3.0653,
   "p95_ms": 3.1707,
   "speedup_x": 2.19,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 155.52,
   "tier": "extreme",
   "p50_ms": 4.479,
   "p95_ms": 4.5394,
   "speedup_x": 1.5,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}