---
id: "nubis-volumetric-clouds"
title: "Nubis-style Ray-marched Volumetric Clouds"
aliases: [Horizon Zero Dawn clouds, Nubis, Volumetric Cloud Rendering, Volumetric Clouds]
domain: "volumes"
stage: "volume"
realtime: "realtime"
platforms: [desktop-gpu, webgpu, unreal]
year_introduced: 2015
inputs: [texture, depth, material-params]
outputs: [radiance, volume-density]
style: "photoreal"
dynamic: "dynamic"
cost: "medium"
authority: "Schneider"
url: "https://texelatlas.vercel.app/t/nubis-volumetric-clouds/"
sources_verified_at: "2026-11-29"
---
# Nubis-style Ray-marched Volumetric Clouds (Schneider)

> 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.

## 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

## 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 use it

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](https://texelatlas.vercel.app/t/multiple-scattering-octaves.md) as an add-on when clouds look too dark and flat inside thick regions. Prefer [Ray-marched Participating Media](https://texelatlas.vercel.app/t/volume-ray-marching.md) with a full 3D grid ([OpenVDB](https://texelatlas.vercel.app/t/openvdb.md), [NanoVDB](https://texelatlas.vercel.app/t/nanovdb.md)) for authored hero clouds. Use Sky/Atmosphere ([Scalable Production Sky and Atmosphere (Hillaire)](https://texelatlas.vercel.app/t/hillaire-sky-atmosphere.md)) for the lighting environment rather than a plain gradient.

## Cost

medium — Tuned in production for a few ms on console-class GPUs using reduced-resolution tracing plus temporal reprojection; full-res without reprojection is much heavier.
Measured GPU Weight: 3355.35× baseline (extreme) — 110.3911 ms median / 110.787 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 2713.18× baseline (extreme) — 43.1396 ms median (2.56× faster on L4).
Ampere A100 scaling: 2148.34× baseline (extreme) — 61.8721 ms median (1.78× faster on A100).

## Failure modes

- 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

## Engine support

- unity: builtin — `Volume > Add Override > Sky > Volumetric Clouds` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.high-definition/Documentation~/volumetric-clouds-volume-override-reference.md, checked 2026-12-01) — HDRP only; ray-marched volumetric clouds, same family as Nubis but not identical.
- unreal: builtin — `Place Actors > Visual Effects > Volumetric Cloud (ray-marched atmospheric cloud component)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/volumetric-cloud-component-in-unreal-engine, checked 2026-12-01)

## Dataflow

- Inputs: texture, depth, material-params
- Outputs: radiance, volume-density
- Platforms: desktop-gpu, webgpu, unreal

## Presets

### Toy Nubis-style cloud layer with height gradient, coverage and detail erosion (glsl-fragment; rendered 2026-11-29)

```json
{
  "LAYER_LO": 1.2,
  "LAYER_HI": 3.2,
  "COVERAGE": 0.55,
  "DENSITY": 14
}
```

```glsl
// 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

## Lineage

- extends [Ray-marched Participating Media](https://texelatlas.vercel.app/t/volume-ray-marching.md)
- extends [Multiple-Scattering Approximation by Octaves](https://texelatlas.vercel.app/t/multiple-scattering-octaves.md)

## Combines with

- [Scalable Production Sky and Atmosphere (Hillaire)](https://texelatlas.vercel.app/t/hillaire-sky-atmosphere.md): Atmosphere LUTs give sun colour at the cloud, and clouds are composited under the aerial-perspective pass.
- [Multiple-Scattering Approximation by Octaves](https://texelatlas.vercel.app/t/multiple-scattering-octaves.md): Replaces the single-scatter shading with a multi-octave approximation that brightens cloud interiors.

## Combination ideas

- [Billowing Nubis volumetric clouds driven by MacCormack clamped advection](https://texelatlas.vercel.app/ideas/maccormack-advected-nubis-clouds/)
- [Storms that form and drift](https://texelatlas.vercel.app/ideas/simulated-weather-for-clouds/)

## Sources

1. [primary] Andrew Schneider The Real-time Volumetric Cloudscapes of Horizon Zero Dawn. SIGGRAPH 2015, Advances in Real-Time Rendering. https://advances.realtimerendering.com/s2015/The%20Real-time%20Volumetric%20Cloudscapes%20of%20Horizon%20-%20Zero%20Dawn%20-%20ARTR.pdf (verified via http on 2026-11-29)
2. [implementation] takram-design-engineering (2024) takram-design-engineering/three-geospatial. https://github.com/takram-design-engineering/three-geospatial License: MIT. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Nubis-style Ray-marched Volumetric Clouds." https://texelatlas.vercel.app/t/nubis-volumetric-clouds/ (accessed 2026-12-01).
