---
id: "split-sum-ibl"
title: "Split-Sum Image-Based Lighting"
aliases: [split sum approximation, prefiltered environment map, PBR IBL]
domain: "gi"
stage: "lighting"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot]
year_introduced: 2013
inputs: [hdr-image, material-params, gbuffer]
outputs: [radiance]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Karis"
url: "https://texelatlas.vercel.app/t/split-sum-ibl/"
sources_verified_at: "2026-11-29"
---
# Split-Sum Image-Based Lighting (Karis)

> Approximates the specular environment lighting integral as a product of two precomputed terms: a roughness-prefiltered environment cubemap and a 2D lookup table of BRDF scale and bias. Costs two texture reads per pixel.

## Reach for it when

- reflections from an environment map for pbr
- realtime image based lighting for glossy surfaces
- specular ibl is too expensive per pixel
- metals look dull without environment reflections

## How it works

Evaluating the full specular integral `integral L(l) f(l, v) cos(theta) dl` per pixel is too slow. The split-sum approximation separates it into two independent sums: the average incoming radiance weighted by the normal distribution, and the average BRDF response with a constant white environment.

**Prefiltered environment map**: an HDR cubemap is convolved offline with a GGX lobe for each roughness level and stored in the mip chain (mip index maps to roughness). The assumption `n = v = r` makes the lookup depend only on the reflection direction and roughness. Importance sampling with a few hundred samples per texel, optionally weighted by `n . l`, builds each mip.

**BRDF integration LUT**: a 2D texture indexed by `n . v` and roughness stores a scale and bias applied to `F0`. It is computed once for the BRDF and is independent of the environment.

At runtime: `specular = prefilteredColor(r, roughness) * (F0 * A + B)`. Diffuse IBL uses a separate irradiance map or [spherical-harmonics-lighting](spherical-harmonics-lighting).

## When to use it

Choose it as the default environment reflection and ambient specular in real-time PBR: skylights, studio HDRIs, reflection probes.

Prefer [spherical-harmonics-lighting](spherical-harmonics-lighting) for the diffuse half. Prefer [ltc-area-lights](ltc-area-lights) for local area emitters with proper highlights. Prefer [path-tracing](path-tracing) or screen-space reflections where correct occlusion of the reflection is required, since split-sum environment lookups are unoccluded.

## Cost

cheap — Two texture samples and a few multiplies per pixel; offline prefiltering costs a few hundred milliseconds per environment.
Measured GPU Weight: 1.86× baseline (feather) — 0.0613 ms median / 0.0648 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 1.49× baseline (feather) — 0.0237 ms median (2.59× faster on L4).
Ampere A100 scaling: 1.17× baseline (feather) — 0.0336 ms median (1.82× faster on A100).

## Failure modes

- Specular occlusion missing: reflections of the sky appear inside crevices and under objects unless multiplied by an AO or specular-occlusion term
- Assuming n = v = r flattens grazing-angle reflections and misses the stretched highlight of real GGX
- Seams or aliasing at cubemap mip boundaries when prefiltered filtering is low-quality
- Parallax error for local probes unless box-projected or corrected

## Engine support

- babylonjs: builtin — `scene.environmentTexture = BABYLON.CubeTexture.CreateFromPrefilteredData(url, scene) (PBR uses BRDF LUT)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Misc/brdfTextureTools.ts, checked 2026-12-01)
- blender: builtin — `EEVEE > Light Probes (environment cubemap + split-sum GGX BRDF lookup)` (evidence: https://docs.blender.org/manual/en/5.2/render/eevee/light_probes/introduction.html, checked 2026-12-01)
- godot: builtin — `Environment.background_mode = Sky; Sky.radiance_size` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/Sky.xml, checked 2026-12-01) — Sky radiance cubemap is prefiltered for specular IBL.
- threejs: builtin — `scene.environment = pmremGenerator.fromEquirectangular(hdr).texture` (evidence: https://github.com/mrdoob/three.js/blob/r187/src/extras/PMREMGenerator.js, checked 2026-12-01)
- unity: builtin — `Lighting > Environment; Reflection Probe (prefiltered GGX cubemaps)` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.high-definition/Runtime/Material/PreIntegratedFGD/PreIntegratedFGD.hlsl, checked 2026-12-01) — HDRP pre-integrated FGD split-sum IBL; URP uses an analytic variant.
- unreal: builtin — `Place Actors > Lights > Sky Light and Reflection Captures (prefiltered environment cubemap specular IBL)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/sky-lights-in-unreal-engine, checked 2026-12-01)

## Dataflow

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

## Presets

### Split-sum spheres: roughness vs metalness (glsl-fragment; rendered 2026-11-29)

```json
{
  "cols": 5,
  "rows": 3
}
```

```glsl
// GLSL ES 3.0, Shadertoy-style. Grid of spheres: roughness left to right, metalness bottom to top.
// Specular uses Karis's analytic EnvBRDFApprox in place of the split-sum LUT; the "prefiltered" env is faked
// by blending the sharp environment toward its blurred average as roughness grows.
const float COLS = 5.0;
const float ROWS = 3.0;
vec3 env(vec3 d){
  vec3 sky = mix(vec3(0.75,0.85,1.0), vec3(0.2,0.4,0.9), clamp(d.y,0.0,1.0));
  vec3 gnd = vec3(0.25,0.2,0.16);
  vec3 c = d.y > 0.0 ? sky : gnd;
  c += vec3(12.0,10.0,7.0) * pow(max(dot(d, normalize(vec3(0.5,0.6,0.6))),0.0), 80.0);
  return c;
}
vec3 envBlur(vec3 d, float r){ return mix(env(d), vec3(0.45,0.5,0.55), r*r*0.8) ; }
vec3 envBRDFApprox(vec3 spec, float rough, float NoV){
  const vec4 c0 = vec4(-1.0,-0.0275,-0.572,0.022);
  const vec4 c1 = vec4(1.0,0.0425,1.04,-0.04);
  vec4 r = rough*c0 + c1;
  float a004 = min(r.x*r.x, exp2(-9.28*NoV))*r.x + r.y;
  vec2 AB = vec2(-1.04,1.04)*a004 + r.zw;
  return spec*AB.x + AB.y;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord){
  vec2 uv = fragCoord / iResolution.xy;
  vec3 bg = mix(vec3(0.1), vec3(0.2), uv.y);
  vec2 g = vec2(uv.x*COLS, uv.y*ROWS);
  vec2 id = floor(g);
  vec2 p = (fract(g) - 0.5) * 2.0 * 1.12;
  p.x *= iResolution.x/iResolution.y * ROWS/COLS;
  if (dot(p,p) > 1.0) { fragColor = vec4(bg,1.0); return; }
  vec3 n = vec3(p, sqrt(1.0 - dot(p,p)));
  vec3 v = vec3(0,0,1);
  float rough = clamp((id.x + 0.5)/COLS, 0.05, 1.0);
  float metal = id.y/(ROWS-1.0);
  vec3 base = vec3(0.95,0.64,0.54);
  vec3 f0 = mix(vec3(0.04), base, metal);
  vec3 diff = (1.0-metal)*base * env(n)*0.0 ;
  // irradiance approximated by a very blurred environment
  diff = (1.0-metal)*base*envBlur(n, 1.0);
  vec3 r = reflect(-v, n);
  float NoV = max(dot(n,v), 0.0);
  vec3 spec = envBlur(r, rough) * envBRDFApprox(f0, rough, NoV);
  vec3 col = diff + spec;
  col = col/(1.0+col);
  fragColor = vec4(pow(col, vec3(1.0/2.2)), 1.0);
}
```

Attribution: written for this index; uses the analytic EnvBRDFApprox from Karis's mobile PBR notes in place of the precomputed LUT

## Combines with

- [Spherical-Harmonic Lighting (Irradiance Environment Maps)](https://texelatlas.vercel.app/t/spherical-harmonics-lighting.md): SH irradiance covers the diffuse term and the prefiltered cubemap covers the specular term of the same environment.

## Sources

1. [primary] Brian Karis Real Shading in Unreal Engine 4. SIGGRAPH 2013 Physically Based Shading in Theory and Practice. https://blog.selfshadow.com/publications/s2013-shading-course (verified via http on 2026-11-29)
2. [tutorial] Joey de Vries Specular IBL. learnopengl.com. https://learnopengl.com/PBR/IBL/Specular-IBL (verified via http on 2026-11-29)

## Cite this entry

Texel. "Split-Sum Image-Based Lighting." https://texelatlas.vercel.app/t/split-sum-ibl/ (accessed 2026-12-01).
