---
id: "hillaire-sky-atmosphere"
title: "Scalable Production Sky and Atmosphere (Hillaire)"
aliases: [UE Sky Atmosphere, multi-scattering LUT]
domain: "volumes"
stage: "volume"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unreal]
year_introduced: 2020
inputs: [material-params, depth]
outputs: [radiance, hdr-image]
style: "photoreal"
dynamic: "dynamic"
cost: "cheap"
authority: "Hillaire, 2020"
url: "https://texelatlas.vercel.app/t/hillaire-sky-atmosphere/"
sources_verified_at: "2026-11-29"
---
# Scalable Production Sky and Atmosphere (Hillaire) (Hillaire, 2020)

> Real-time planetary atmosphere built from small per-frame lookup tables: transmittance, a multiple-scattering table and a sky-view table, plus a camera froxel volume for aerial perspective.

## Reach for it when

- real-time sky with time of day changes
- view from ground to space atmosphere in a game
- aerial perspective haze over distant terrain
- sky colour must update without long precompute

## How it works

Every frame a few tiny LUTs are rebuilt, so all atmosphere parameters can be animated. A transmittance LUT stores optical depth to the top of atmosphere indexed by height and sun angle. A multi-scattering LUT replaces higher-order scattering with an isotropic-source approximation: it evaluates a geometric series of the second-order bounce, indexed by height and sun angle, which is cheap and close to brute-force results. A sky-view LUT then ray-marches single scattering once per direction (parametrized to concentrate texels at the horizon) and adds the multi-scattering term. For geometry, a low-resolution camera-aligned volume of scattering and transmittance gives aerial perspective on opaque and transparent objects by one fetch. Sun and moon discs, ground bounce and planet shadow fall out of the same tables.

## When to use it

Choose it when the atmosphere must be fully dynamic (time of day, weather-driven density, alien planets), run on a console or mobile-class budget, and be applied to opaque objects, particles and clouds consistently.

Prefer [Precomputed Atmospheric Scattering](https://texelatlas.vercel.app/t/precomputed-atmospheric-scattering.md) when parameters are fixed and you want the more exact multi-order reference with irradiance tables. Prefer [Preetham Analytic Daylight Model](https://texelatlas.vercel.app/t/preetham-sky.md) or [Hosek-Wilkie Sky Model](https://texelatlas.vercel.app/t/hosek-wilkie-sky.md) when you only need a ground-level sky dome with no aerial perspective. Pair with [Nubis-style Ray-marched Volumetric Clouds](https://texelatlas.vercel.app/t/nubis-volumetric-clouds.md) for the cloud layer.

## Cost

cheap — The paper reports it runs within a small frame budget on consoles and mobile hardware; the LUT updates are low resolution so cost scales mainly with the sky-view and froxel passes.
Measured GPU Weight: 103.13× baseline (extreme) — 3.393 ms median / 3.5244 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 90.42× baseline (extreme) — 1.4377 ms median (2.36× faster on L4).
Ampere A100 scaling: 70.36× baseline (extreme) — 2.0265 ms median (1.67× faster on A100).

## Failure modes

- Multi-scattering approximation drifts from ground truth for very thick atmospheres or high-albedo ground
- Low-res aerial perspective volume shows banding or leaks near depth discontinuities
- Sky-view LUT interpolation can blur the sun's near-horizon glow and produce a faint ring around the sun disc
- Camera inside a cloud or fog layer needs separate handling; the model assumes space-like atmosphere layers
- No shadowing of atmosphere by terrain unless extra shadow-volume sampling is added

## Engine support

- babylonjs: official — `import { Atmosphere } from '@babylonjs/addons/atmosphere'` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/addons/src/atmosphere/atmosphere.ts, checked 2026-12-01) — Sky-view LUT, aerial perspective, multiple scattering.
- blender: builtin — `World Shader > Sky Texture node (Nishita physical multi-scattering sky)` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/textures/sky.html, checked 2026-12-01)
- unity: builtin — `Volume > Add Override > Sky > Visual Environment > Sky Type = Physically Based Sky` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.high-definition/Documentation~/physically-based-sky-volume-override-reference.md, checked 2026-12-01) — HDRP only; Physically Based Sky cites Hillaire 2020 and Bruneton 2008.
- unreal: builtin — `Place Actors > Visual Effects > Sky Atmosphere (Sky Atmosphere component)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/sky-atmosphere-component-in-unreal-engine, checked 2026-12-01) — Physically based multiple-scattering sky/aerial perspective; docs do not name the paper.

## Dataflow

- Inputs: material-params, depth
- Outputs: radiance, hdr-image
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unreal

## Presets

### Toy ray-marched single-scattering atmosphere with Hillaire coefficients at sunset (glsl-fragment; rendered 2026-11-29)

```json
{
  "R_PLANET": 6360,
  "R_ATMOS": 6460,
  "SUN_I": 22
}
```

```glsl
// Toy single-scattering atmosphere ray-march using the Hillaire (2020) coefficient set:
// Rayleigh + Mie + ozone absorption, planet shadow, ground bounce. Real-time version bakes this into LUTs.
const float R_PLANET = 6360.0;
const float R_ATMOS = 6460.0;
const vec3 BETA_R = vec3(5.802, 13.558, 33.1) * 1e-3;
const float BETA_M_S = 3.996e-3;
const float BETA_M_E = 4.44e-3;
const vec3 BETA_O = vec3(0.65, 1.881, 0.085) * 1e-3;
const float SUN_I = 22.0;

vec2 raySph(vec3 ro, vec3 rd, float r) {
  float b = dot(ro, rd), c = dot(ro, ro) - r * r, h = b * b - c;
  if (h < 0.0) return vec2(-1.0);
  h = sqrt(h); return vec2(-b - h, -b + h);
}
vec3 densities(vec3 p) {
  float h = length(p) - R_PLANET;
  return vec3(exp(-h / 8.0), exp(-h / 1.2), max(0.0, 1.0 - abs(h - 25.0) / 15.0));
}
vec3 ext(vec3 d) { return BETA_R * d.x + BETA_M_E * d.y + BETA_O * d.z; }
vec3 sunTrans(vec3 p, vec3 sd) {
  if (raySph(p, sd, R_PLANET).x > 0.0) return vec3(0.0);
  float len = raySph(p, sd, R_ATMOS).y; float ds = len / 6.0; vec3 od = vec3(0.0);
  for (int i = 0; i < 6; i++) od += ext(densities(p + sd * (float(i) + 0.5) * ds)) * ds;
  return exp(-od);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  vec3 ro = vec3(0.0, R_PLANET + 0.3, 0.0);
  vec3 rd = normalize(vec3(uv.x * 1.3, uv.y * 1.3 + 0.14, -1.0));
  vec3 sd = normalize(vec3(0.25, 0.07, -1.0));
  vec2 pg = raySph(ro, rd, R_PLANET);
  float tmax = pg.x > 0.0 ? pg.x : raySph(ro, rd, R_ATMOS).y;
  float cs = dot(rd, sd);
  float phR = 3.0 / (16.0 * 3.14159) * (1.0 + cs * cs);
  float g = 0.8; float phM = (1.0 - g * g) / (12.566 * pow(1.0 + g * g - 2.0 * g * cs, 1.5));
  vec3 od = vec3(0.0), L = vec3(0.0);
  for (int i = 0; i < 24; i++) {
    float t0 = tmax * pow(float(i) / 24.0, 2.0), t1 = tmax * pow(float(i + 1) / 24.0, 2.0);
    float ds = t1 - t0; vec3 p = ro + rd * (0.5 * (t0 + t1));
    vec3 d = densities(p); od += ext(d) * ds;
    L += exp(-od) * sunTrans(p, sd) * (BETA_R * d.x * phR + BETA_M_S * d.y * phM) * ds * SUN_I;
  }
  if (pg.x > 0.0) {
    vec3 hp = ro + rd * pg.x; vec3 n = normalize(hp);
    L += exp(-od) * vec3(0.12, 0.1, 0.08) * sunTrans(hp, sd) * max(dot(n, sd), 0.0) * SUN_I;
  } else if (cs > 0.99995) L += exp(-od) * SUN_I * 8.0;
  L = 1.0 - exp(-L * 0.9);
  fragColor = vec4(pow(L, vec3(1.0 / 2.2)), 1.0);
}

```

Attribution: written for this index

## Lineage

- extends [Precomputed Atmospheric Scattering](https://texelatlas.vercel.app/t/precomputed-atmospheric-scattering.md)

## Combines with

- [Nubis-style Ray-marched Volumetric Clouds](https://texelatlas.vercel.app/t/nubis-volumetric-clouds.md): Sky-view and transmittance LUTs light the cloud layer; clouds are composited before the aerial-perspective volume is applied.
- [Exponential Height Fog](https://texelatlas.vercel.app/t/exponential-height-fog.md): Aerial perspective handles distant haze while height fog covers the low, dense layer near ground.

## Sources

1. [primary] Sébastien Hillaire (2020) A Scalable and Production Ready Sky and Atmosphere Rendering Technique. Computer Graphics Forum. https://doi.org/10.1111/cgf.14050 (verified via crossref on 2026-11-29)
2. [implementation] sebh (2020) sebh/UnrealEngineSkyAtmosphere. https://github.com/sebh/UnrealEngineSkyAtmosphere License: MIT. (verified via github on 2026-11-29)
3. [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. "Scalable Production Sky and Atmosphere (Hillaire)." https://texelatlas.vercel.app/t/hillaire-sky-atmosphere/ (accessed 2026-12-01).
