Multiple-Scattering Approximation by Octaves
Approximate many scattering orders by summing a few octaves of single scattering with progressively weaker extinction, lower anisotropy and lower contribution, so thick clouds stay bright inside.
Also known as art-directable multiple scattering, Wrenninge multi-octave scattering
In the family Atmosphere, water & volumes, clouds
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | Built in | Volume > Volumetric Clouds > Multi Scattering docs HDRP clouds use a 2-octave multiple-scattering approximation. |
| Unreal 5.7 | Built in | Volumetric Cloud Material > VolumetricAdvancedMaterialOutput (const_multi_scattering_contribution, const_multi_scattering_eccentricity octaves) docs |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Single scattering lets light die quickly in dense media, making clouds look dark and flat. The approximation re-runs the same single-scatter calculation N times (typically 4 to 8), where octave i uses scaled coefficients: the extinction used for the light path is multiplied by a factor a to the i, the scattering contribution is multiplied by b to the i, and the phase function eccentricity g is scaled by c to the i. The three constants are all below one, and with a few octaves the sum mimics the diffusion of light into deeper regions and the loss of directionality. The results are summed per sample, either re-marching the light ray per octave or reusing one light march with scaled optical depths. The constants are art-directable knobs rather than physically derived, and they can be tuned to match a path-traced reference.
When to choose it
Reach for it when
- clouds look dark and flat inside
- thick smoke loses brightness with single scattering
- can't afford path-traced multiple scattering for clouds
- dense fog lacks soft glowing interior
Choose it to rescue single-scatter clouds, smoke and fog when a path tracer is too expensive: it adds only a few extra exponentials per sample if you reuse the light-ray optical depth.
Prefer Delta (Woodcock) Tracking for ground truth or offline production renders. Use it on top of Nubis-style Ray-marched Volumetric Clouds or Ray-marched Participating Media rather than as a standalone method. Prefer a precomputed multi-scattering LUT (see Scalable Production Sky and Atmosphere (Hillaire)) when the medium is a planetary atmosphere.
Field marks
- Not energy conserving: bad constants can make clouds glow or lose energy
- Matched only for the reference look it was tuned on; thin and thick media can need different constants
- Interior brightness loses contrast with no sense of cloud thickness when too many octaves are summed
- Does not capture view-dependent effects like glories
- Octave parameters lack a physical meaning, which makes automated tuning against a reference awkward
Presets
Backlit cloud: 1 scattering octave (left) vs 6 octaves (right)
{
"SIGMA": 6,
"OCT_A": 0.5,
"OCT_B": 0.5,
"OCT_C": 0.5,
"G_ANISO": 0.6
}Show GLSL (54 lines)
// Backlit cloud with the multiple-scattering octave approximation (Wrenninge):
// sum_n a^n * exp(-tau_light * b^n) * HG(cos, g * c^n). Left half: 1 octave (single scattering).
// Right half: 6 octaves. Same cloud, same light.
const float SIGMA = 6.0;
const float OCT_A = 0.5;
const float OCT_B = 0.5;
const float OCT_C = 0.5;
const float G_ANISO = 0.6;
float h31(vec3 p) { p = fract(p * 0.1031); p += dot(p, p.zyx + 31.32); return fract((p.x + p.y) * p.z); }
float vn(vec3 x) {
vec3 i = floor(x), f = fract(x); f = f * f * (3.0 - 2.0 * f);
return mix(mix(mix(h31(i), h31(i + vec3(1, 0, 0)), f.x), mix(h31(i + vec3(0, 1, 0)), h31(i + vec3(1, 1, 0)), f.x), f.y),
mix(mix(h31(i + vec3(0, 0, 1)), h31(i + vec3(1, 0, 1)), f.x), mix(h31(i + vec3(0, 1, 1)), h31(i + vec3(1, 1, 1)), f.x), f.y), f.z);
}
float dens(vec3 p) {
float shape = 1.0 - length(p / vec3(1.1, 0.75, 1.1));
float n = 0.5 * vn(p * 2.5) + 0.25 * vn(p * 5.0) + 0.125 * vn(p * 10.0);
return clamp((shape + (n - 0.4) * 0.9) * 2.5, 0.0, 1.0) * SIGMA;
}
float hg(float c, float g) { float g2 = g * g; return (1.0 - g2) / (12.566 * pow(1.0 + g2 - 2.0 * g * c, 1.5)); }
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 ro = vec3(0.0, 0.2, 3.6), rd = normalize(vec3(uv, -1.8));
vec3 L = normalize(vec3(0.4, 0.5, -0.7));
int octs = fragCoord.x < 0.5 * iResolution.x ? 1 : 6;
vec3 bg = vec3(0.3, 0.5, 0.85) * (0.75 + 0.5 * uv.y);
float b = dot(ro, rd); float hh = b * b - dot(ro, ro) + 2.25;
vec3 col = bg;
if (hh > 0.0) {
float t0 = -b - sqrt(hh), t1 = -b + sqrt(hh); float ds = (t1 - t0) / 48.0;
float T = 1.0; vec3 S = vec3(0.0); float cs = dot(L, rd);
for (int i = 0; i < 48; i++) {
vec3 p = ro + rd * (t0 + (float(i) + 0.5) * ds); float d = dens(p);
if (d < 0.01) continue;
float tau = 0.0;
for (int k = 1; k <= 6; k++) tau += dens(p + L * float(k) * 0.2) * 0.2;
float li = 0.0;
for (int n = 0; n < 6; n++) {
if (n >= octs) break;
float fn = float(n);
li += pow(OCT_A, fn) * exp(-tau * pow(OCT_B, fn)) * hg(cs, G_ANISO * pow(OCT_C, fn));
}
vec3 amb = vec3(0.35, 0.5, 0.8) * 0.06 * (0.6 + 0.4 * p.y);
S += T * (vec3(1.0, 0.95, 0.85) * li * 9.0 + amb) * d * ds;
T *= exp(-d * ds);
}
col = bg * T + S;
}
if (abs(fragCoord.x - 0.5 * iResolution.x) < 1.0) col = vec3(1.0);
col = 1.0 - exp(-col * 1.4);
fragColor = vec4(pow(col, vec3(1.0 / 2.2)), 1.0);
}
Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| multiple-scattering-octaves-specimen | Tesla T4 1920x1080 | 1006× baseline (extreme) · 33.1 ms / 33.6 ms | opengl-timer-query · 20 frames · GPU Weight Atlas · Colab T4 sweep |
| multiple-scattering-octaves-specimen | NVIDIA L4 1920x1080 | 828× baseline (extreme) · 13.2 ms / 13.3 ms · 2.5× faster on L4 | opengl-timer-query · Cross-architecture validation |
| multiple-scattering-octaves-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 692× baseline (extreme) · 19.9 ms / 20.0 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Henyey-Greenstein Phase Function, Delta (Woodcock) Tracking, Deep shadow maps, SAH BVH construction, OpenVDB.
Crosses
- Nubis-style Ray-marched Volumetric Clouds: Takes the density and per-sample light march from the cloud marcher and brightens interiors.
- Henyey-Greenstein Phase Function: Each octave uses an HG lobe with a reduced asymmetry.
Sources
- primaryMagnus Wrenninge (2015). Art-directable multiple volumetric scattering. ACM SIGGRAPH 2015 Talks.Verified via crossref · 2026-11-29doi:10.1145/2775280.2792512
- primaryJulian Fong, Magnus Wrenninge, Christopher Kulla, Ralf Habel (2017). Production volume rendering. ACM SIGGRAPH 2017 Courses.Verified via crossref · 2026-11-29doi:10.1145/3084873.3084907