Scalable Production Sky and Atmosphere (Hillaire)
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.
Also known as UE Sky Atmosphere, multi-scattering LUT
In the family Atmosphere, water & volumes, atmosphere
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | Official add-on | import { Atmosphere } from '@babylonjs/addons/atmosphere' docs Sky-view LUT, aerial perspective, multiple scattering. |
| Godot 4.7 | None found | |
| Unity | Built in | Volume > Add Override > Sky > Visual Environment > Sky Type = Physically Based Sky docs HDRP only; Physically Based Sky cites Hillaire 2020 and Bruneton 2008. |
| Unreal 5.7 | Built in | Place Actors > Visual Effects > Sky Atmosphere (Sky Atmosphere component) docs Physically based multiple-scattering sky/aerial perspective; docs do not name the paper. |
| Blender 5.2 | Built in | World Shader > Sky Texture node (Nishita physical multi-scattering sky) docs |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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 when parameters are fixed and you want the more exact multi-order reference with irradiance tables. Prefer Preetham Analytic Daylight Model or Hosek-Wilkie Sky Model when you only need a ground-level sky dome with no aerial perspective. Pair with Nubis-style Ray-marched Volumetric Clouds for the cloud layer.
Field marks
- 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
Presets
Toy ray-marched single-scattering atmosphere with Hillaire coefficients at sunset
{
"R_PLANET": 6360,
"R_ATMOS": 6460,
"SUN_I": 22
}Show GLSL (51 lines)
// 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
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| hillaire-sky-atmosphere-specimen | Tesla T4 1920x1080 | 103× baseline (extreme) · 3.39 ms / 3.52 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| hillaire-sky-atmosphere-specimen | NVIDIA L4 1920x1080 | 90.4× baseline (extreme) · 1.44 ms / 1.46 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| hillaire-sky-atmosphere-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 70.4× baseline (extreme) · 2.03 ms / 2.03 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Ray-marched Rayleigh/Mie Single Scattering, Preetham Analytic Daylight Model.
Crosses
- Nubis-style Ray-marched Volumetric Clouds: Sky-view and transmittance LUTs light the cloud layer; clouds are composited before the aerial-perspective volume is applied.
- Exponential Height Fog: Aerial perspective handles distant haze while height fog covers the low, dense layer near ground.
Sources
- primarySébastien Hillaire (2020). A Scalable and Production Ready Sky and Atmosphere Rendering Technique. Computer Graphics Forum.Verified via crossref · 2026-11-29doi:10.1111/cgf.14050
- implementationsebh (2020). sebh/UnrealEngineSkyAtmosphere. Unreal Engine Sky Atmosphere Rendering TechniqueGitHub API · license MIT · 2026-11-29
- implementationtakram-design-engineering (2024). takram-design-engineering/three-geospatial. Geospatial Rendering in Three.jsGitHub API · license MIT · 2026-11-29