---
id: "frostbite-pbr"
title: "Frostbite physically based rendering"
domain: "materials"
stage: "material"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot, blender]
year_introduced: 2014
inputs: [material-params, normals, irradiance-probes]
outputs: [radiance]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Lagarde & Rousiers"
url: "https://texelatlas.vercel.app/t/frostbite-pbr/"
sources_verified_at: "2026-11-29"
---
# Frostbite physically based rendering (Lagarde & Rousiers)

> The Frostbite engine's PBR recipe: GGX specular with height-correlated Smith, Disney-style diffuse, photometric light units, and a consistent IBL and area-light pipeline. Its course notes are the reference for shipping PBR in a game engine.

## Reach for it when

- need a checklist for shipping pbr in a game engine
- lighting units and roughness remapping are inconsistent
- specular occlusion and ibl prefiltering questions
- auditing my game's physically based pipeline
- area lights and ibl don't match in brightness

## How it works

The notes document a full engine-level pipeline rather than a single BRDF. Materials use a base colour/metalness/reflectance/smoothness parameterisation with a remap from artist roughness to GGX alpha. Direct lighting evaluates GGX with the height-correlated Smith visibility term and a Frostbite-tuned diffuse (a Disney variant with energy normalisation). Lights are specified in physical photometric units (lumens, lux, nits) with exposure applied afterwards, and area lights use representative-point or LTC-style approximations. IBL uses pre-filtered specular cubemaps and a split-sum BRDF LUT with a dominant-direction correction for rough reflections, and diffuse from pre-integrated irradiance. The text also covers unit conversion, occlusion handling and specular occlusion.

## When to use it

Choose it as a checklist when building or auditing a game PBR pipeline: units, roughness remapping, specular occlusion, IBL pre-filtering. Prefer [Disney principled BRDF](https://texelatlas.vercel.app/t/disney-principled-brdf.md) when you want the artist parameter philosophy instead of an engine recipe, and [OpenPBR Surface](https://texelatlas.vercel.app/t/openpbr-surface.md) for offline interchange.

## Cost

cheap — Designed for console budgets: one GGX lobe per light plus pre-filtered IBL lookups.
Measured GPU Weight: 3.63× baseline (light) — 0.1195 ms median / 0.126 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 2.82× baseline (light) — 0.0448 ms median (2.67× faster on L4).
Ampere A100 scaling: 2.22× baseline (light) — 0.0638 ms median (1.87× faster on A100).

## Failure modes

- Split-sum IBL assumes view = normal, so stretched reflections at grazing angles and on rough surfaces are too short
- Pre-filtered cubemaps are box-parallax-free; interiors need local probes or reflections look detached
- Photometric exposure workflows break when artists or tonemappers assume sRGB-ranged lights
- Single-scatter specular loses energy at high roughness; add kulla-conty-multiscatter

## Engine support

- babylonjs: builtin — `PBRMaterial combines Burley diffuse, GGX NDF, height-correlated Smith visibility (smithVisibility_GGXCorrelated), and photometric light units` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Shaders/ShadersInclude/pbrDirectLightingFunctions.fx, checked 2026-12-01)
- unity: builtin — `HDRP Lit and Lighting pipeline (follows Moving Frostbite to PBR: physical light units, renormalized DisneyDiffuse, height-correlated Smith GGX)` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonLighting.hlsl, checked 2026-12-01) — HDRP lighting and BSDF follow Lagarde and de Rousiers' Frostbite PBR model.

## Dataflow

- Inputs: material-params, normals, irradiance-probes
- Outputs: radiance
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot, blender

## Presets

### Frostbite PBR spheres: dielectric and gold, roughness sweep (glsl-fragment; rendered 2026-11-29)

```json
{
  "ROUGH_MIN": 0.08
}
```

```glsl
// Frostbite-style PBR: GGX + height-correlated Smith visibility + Burley diffuse with the energy-conserving
// bias/factor. Top row dielectric, bottom row gold metal, roughness 0.08 -> 1.0 left to right.
const float ROUGH_MIN = 0.08;
const vec3 ALBEDO = vec3(0.75, 0.12, 0.1);
const vec3 METAL_F0 = vec3(1.0, 0.77, 0.34);
const vec3 L_DIR = vec3(0.5, 0.7, 0.6);

vec3 env(vec3 d) {
  vec3 c = mix(vec3(0.12, 0.1, 0.1), vec3(0.4, 0.55, 0.85), smoothstep(-0.3, 0.8, d.y));
  return c + vec3(3.0) * pow(max(dot(d, normalize(L_DIR)), 0.0), 50.0);
}
float visSmith(float nl, float nv, float a) {
  float a2 = a * a;
  float gv = nl * sqrt((-nv * a2 + nv) * nv + a2);
  float gl = nv * sqrt((-nl * a2 + nl) * nl + a2);
  return 0.5 / max(gv + gl, 1e-4);
}
vec3 shade(vec3 n, vec3 v, float rough, float metal) {
  vec3 l = normalize(L_DIR); vec3 h = normalize(v + l);
  float nl = clamp(dot(n, l), 1e-3, 1.0), nv = max(dot(n, v), 1e-3);
  float nh = clamp(dot(n, h), 0.0, 1.0), lh = clamp(dot(l, h), 0.0, 1.0);
  float a = rough * rough; float d = nh * nh * (a * a - 1.0) + 1.0;
  float D = a * a / (3.14159 * d * d);
  vec3 f0 = mix(vec3(0.04), METAL_F0, metal);
  vec3 F = f0 + (1.0 - f0) * pow(1.0 - lh, 5.0);
  vec3 spec = D * visSmith(nl, nv, a) * F;
  float eb = mix(0.0, 0.5, rough), ef = mix(1.0, 1.0 / 1.51, rough);
  float fd90 = eb + 2.0 * lh * lh * rough;
  float fd = (1.0 + (fd90 - 1.0) * pow(1.0 - nl, 5.0)) * (1.0 + (fd90 - 1.0) * pow(1.0 - nv, 5.0)) * ef;
  vec3 diff = (1.0 - metal) * ALBEDO * fd / 3.14159;
  vec3 amb = env(n) * ALBEDO * (1.0 - metal) * 0.5;
  vec3 fr = f0 + (max(vec3(1.0 - rough), f0) - f0) * pow(1.0 - nv, 5.0);
  amb += env(reflect(-v, n)) * fr * (1.0 - 0.5 * rough);
  return (diff + spec) * nl * 3.14159 * 1.4 + amb;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  vec3 ro = vec3(0.0, 0.0, 4.0), rd = normalize(vec3(uv, -1.6));
  vec3 col = env(rd) * 0.35; float best = 1e9;
  for (int j = 0; j < 2; j++) for (int i = 0; i < 5; i++) {
    vec3 c = vec3((float(i) - 2.0) * 0.5, j == 0 ? 0.28 : -0.28, 0.0);
    vec3 oc = ro - c; float b = dot(oc, rd); float hh = b * b - dot(oc, oc) + 0.23 * 0.23;
    if (hh < 0.0) continue;
    float t = -b - sqrt(hh);
    if (t > 0.0 && t < best) {
      best = t; vec3 n = normalize(ro + rd * t - c);
      col = shade(n, -rd, mix(ROUGH_MIN, 1.0, float(i) / 4.0), j == 0 ? 0.0 : 1.0);
    }
  }
  col = col / (1.0 + col);
  fragColor = vec4(pow(col, vec3(1.0 / 2.2)), 1.0);
}

```

Attribution: written for this index

## Lineage

- extends [Disney principled BRDF](https://texelatlas.vercel.app/t/disney-principled-brdf.md)

## Sources

1. [primary] Sébastien Lagarde, Charles de Rousiers Moving Frostbite to Physically Based Rendering. SIGGRAPH 2014 course. https://seblagarde.wordpress.com/wp-content/uploads/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf (verified via http on 2026-11-29)

## Cite this entry

Texel. "Frostbite physically based rendering." https://texelatlas.vercel.app/t/frostbite-pbr/ (accessed 2026-12-01).
