Nubis-style Ray-marched Volumetric Clouds
Sky-scale clouds from a coverage map and tiling 3D noise textures, ray-marched in a thick layer with cheap lighting and temporal reprojection to hit a few milliseconds.
Also known as Horizon Zero Dawn clouds, Nubis, Volumetric Cloud Rendering, Volumetric Clouds
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 > Add Override > Sky > Volumetric Clouds docs HDRP only; ray-marched volumetric clouds, same family as Nubis but not identical. |
| Unreal 5.7 | Built in | Place Actors > Visual Effects > Volumetric Cloud (ray-marched atmospheric cloud component) docs |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Cloud density is composed on the fly. A weather texture gives coverage and cloud type; a height-gradient function shapes each type vertically; a low-frequency Perlin-Worley 3D texture carves the base shape and a higher-frequency Worley 3D texture erodes the edges, with curl noise distorting the lookup for wispy detail. A ray is marched through the layer (a spherical shell) with large steps that shrink when density is first found. At each sample a handful of cone-spread samples toward the sun estimate optical depth; a Beer-Lambert term, a powder-style darkening term for edges and a dual-lobe HG phase give the lighting. To fit the budget, only one pixel in each block of a small pattern is traced per frame and the result is reprojected and blended, and sky color and aerial perspective come from the atmosphere model.
When to choose it
Reach for it when
- need dynamic fly-through clouds in a game
- artists want to paint weather coverage
- sky clouds must render in a few milliseconds
- cloud layers need cheap lighting at large scale
Choose it for large, dynamic, fly-through skies in games and real-time visualisation where artists drive weather via a coverage map.
Prefer Multiple-Scattering Approximation by Octaves as an add-on when clouds look too dark and flat inside thick regions. Prefer Ray-marched Participating Media with a full 3D grid (OpenVDB, NanoVDB) for authored hero clouds. Use Sky/Atmosphere (Scalable Production Sky and Atmosphere (Hillaire)) for the lighting environment rather than a plain gradient.
Field marks
- Ghosting and trailing of clouds under fast camera motion or wind from temporal reprojection
- Low-res tracing flickers or shimmers at cloud edges without careful jitter and history clamping
- Overly dark cloud interiors because only single scattering is evaluated
- Banding in the layer where step size is too coarse along grazing rays near the horizon
- Tiling of the noise volumes visible in the distance or at the layer boundary
- Cloud shadow on the ground needs a separate shadow-map-like pass
Presets
Toy Nubis-style cloud layer with height gradient, coverage and detail erosion
{
"LAYER_LO": 1.2,
"LAYER_HI": 3.2,
"COVERAGE": 0.55,
"DENSITY": 14
}Show GLSL (54 lines)
// Toy Nubis-style cloud layer: height-fraction gradient shapes the noise, coverage threshold carves
// cumulus-like cells, detail noise erodes edges; lit by a short light-march with Beer + powder terms.
const float LAYER_LO = 1.2;
const float LAYER_HI = 3.2;
const float COVERAGE = 0.55;
const float DENSITY = 14.0;
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 fbm(vec3 p) { return 0.5 * vn(p) + 0.25 * vn(p * 2.0) + 0.125 * vn(p * 4.0) + 0.0625 * vn(p * 8.0); }
float dens(vec3 p) {
float hf = clamp((p.y - LAYER_LO) / (LAYER_HI - LAYER_LO), 0.0, 1.0);
float grad = clamp(hf / 0.12, 0.0, 1.0) * clamp((0.85 - hf) / 0.45, 0.0, 1.0);
vec3 q = p * 0.6 + vec3(iTime * 0.05, 0.0, 0.0);
float shape = fbm(q * vec3(1.0, 1.4, 1.0)) * 1.9 * grad;
float d = shape - (1.0 - COVERAGE) * 0.9;
d -= 0.22 * (1.0 - hf) * fbm(q * 5.0 + 7.0);
return max(d, 0.0) * DENSITY;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 ro = vec3(0.0, 0.05, 0.0);
vec3 rd = normalize(vec3(uv.x, uv.y * 0.9 + 0.22, -1.0));
vec3 L = normalize(vec3(0.5, 0.4, -0.6));
vec3 skyc = mix(vec3(0.75, 0.82, 0.92), vec3(0.2, 0.42, 0.8), clamp(rd.y * 2.2, 0.0, 1.0));
skyc += vec3(1.0, 0.9, 0.7) * pow(max(dot(rd, L), 0.0), 100.0) * 2.0;
vec3 col = skyc;
if (rd.y > 0.01) {
float t0 = (LAYER_LO - ro.y) / rd.y, t1 = min((LAYER_HI - ro.y) / rd.y, t0 + 14.0);
float ds = (t1 - t0) / 56.0; float T = 1.0; vec3 S = vec3(0.0);
float cs = dot(rd, L);
float ph = 0.7 * (1.0 - 0.5) / (12.566 * pow(1.25 - 0.9 * cs, 1.5)) + 0.3 * 0.0796;
for (int i = 0; i < 56; 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 <= 4; k++) tau += dens(p + L * float(k) * 0.18) * 0.18;
float hf = clamp((p.y - LAYER_LO) / (LAYER_HI - LAYER_LO), 0.0, 1.0);
float light = (exp(-tau) + 0.35 * exp(-tau * 0.25)) * (1.0 - exp(-2.0 * d * 0.2));
vec3 amb = mix(vec3(0.25, 0.3, 0.4), vec3(0.6, 0.7, 0.9), hf) * 0.5;
S += T * (vec3(1.0, 0.93, 0.8) * light * ph * 10.0 + amb) * d * ds;
T *= exp(-d * ds);
}
float fade = exp(-t0 * 0.03);
col = mix(skyc, skyc * T + S, fade);
}
col = 1.0 - exp(-col * 1.3);
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 |
|---|---|---|---|
| nubis-volumetric-clouds-specimen | Tesla T4 1920x1080 | 3355× baseline (extreme) · 110.4 ms / 110.8 ms | opengl-timer-query · 20 frames · GPU Weight Atlas · Colab T4 sweep |
| nubis-volumetric-clouds-specimen | NVIDIA L4 1920x1080 | 2713× baseline (extreme) · 43.1 ms / 44.3 ms · 2.6× faster on L4 | opengl-timer-query · Cross-architecture validation |
| nubis-volumetric-clouds-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 2148× baseline (extreme) · 61.9 ms / 62.0 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
Crosses
- Billowing Nubis volumetric clouds driven by MacCormack clamped advection: Advecting cloud moisture and cumulus anvil density with second-order MacCormack clamped advection keeps curling thunderhead edges razor-crisp over minutes of live weather evolution, eliminating the syrupy blurring of standard semi-Lagrangian wind scroll.
- Storms that form and drift: Cloudscapes where storm cells form, merge, shear and dissipate with a wind field, because coverage and cloud type are advected by a small 2D fluid simulation rather than scrolled as a static weather map.
- Scalable Production Sky and Atmosphere (Hillaire): Atmosphere LUTs give sun colour at the cloud, and clouds are composited under the aerial-perspective pass.
- Multiple-Scattering Approximation by Octaves: Replaces the single-scatter shading with a multi-octave approximation that brightens cloud interiors.
Sources
- primaryAndrew Schneider. The Real-time Volumetric Cloudscapes of Horizon Zero Dawn. SIGGRAPH 2015, Advances in Real-Time Rendering.Verified via live page · 2026-11-29
- implementationtakram-design-engineering (2024). takram-design-engineering/three-geospatial. Geospatial Rendering in Three.jsGitHub API · license MIT · 2026-11-29