---
id: "tiled-deferred-shading"
title: "Tiled deferred shading"
aliases: [tiled shading, tile-based light culling]
domain: "performance"
stage: "performance"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu]
year_introduced: 2009
inputs: [gbuffer, depth]
outputs: [radiance]
style: "both"
dynamic: "both"
cost: "medium"
authority: "Olsson & Assarsson, 2011"
url: "https://texelatlas.vercel.app/t/tiled-deferred-shading/"
sources_verified_at: "2026-11-29"
---
# Tiled deferred shading (Olsson & Assarsson, 2011)

> Cut the screen into small tiles, find each tile's depth range and the lights touching it, then shade the G-buffer pixels with just that tile's light list.

## Reach for it when

- too many small lights tank deferred performance
- each pixel shades every light unnecessarily
- need a light list per screen region
- scene with hundreds of point lights on opaque geometry

## How it works

After the G-buffer pass, a compute shader processes one tile per workgroup. Threads reduce the tile's min and max depth, build its frustum, and cooperatively test all lights against it, appending hits to a list in shared memory. Then each thread shades its pixel by looping that list, reading material data from the G-buffer.

Because lighting is done once per pixel and light lists are small, many hundreds of lights become affordable, though G-buffer bandwidth and material variety are limited.

## When to use it

Choose it with a deferred renderer and many small lights. Prefer [Clustered forward shading](https://texelatlas.vercel.app/t/clustered-forward-shading.md) when you need MSAA, transparency, or wide depth ranges inside tiles. Prefer plain forward rendering with few lights on mobile.

## Cost

medium — Scales with light count per tile and G-buffer width.
Measured GPU Weight: 14.72× baseline (moderate) — 0.4842 ms median / 0.5053 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 12.92× baseline (moderate) — 0.2055 ms median (2.36× faster on L4).
Ampere A100 scaling: 9.23× baseline (moderate) — 0.2657 ms median (1.82× faster on A100).

## Failure modes

- Tiles with a large depth range, such as at silhouettes, get excess lights
- Transparent surfaces do not fit the G-buffer
- MSAA multiplies G-buffer cost
- Only one material model per G-buffer layout

## Engine support

- metal: builtin — `MTLTileRenderPipelineDescriptor + imageblock (on-chip Apple Silicon TBDR tile memory deferred pass)` (evidence: https://developer.apple.com/tutorials/data/documentation/metal/mtltilerenderpipelinedescriptor.json, checked 2026-12-01)
- unity: builtin — `URP Renderer > Rendering Path = Deferred; HDRP Camera > Lit Shader Mode = Deferred` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.high-definition/Documentation~/Forward-And-Deferred-Rendering.md, checked 2026-12-01) — URP Deferred and HDRP Deferred.

## Dataflow

- Inputs: gbuffer, depth
- Outputs: radiance
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu

## Presets

### Toy 2D tile light-culling heat map for animated point lights (glsl-fragment; rendered 2026-11-29)

```json
{
  "LIGHTS": 24,
  "TILE": 32
}
```

```glsl
// Toy 2D light-culling view: screen split into 32px tiles, heat colour = number of lights whose radius overlaps the tile.
const int LIGHTS = 24;
const float TILE = 32.0;
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 tileMin = floor(fragCoord / TILE) * TILE, tileMax = tileMin + TILE;
    int cnt = 0; float lit = 0.0, ring = 1e9, cdist = 1e9;
    for (int i = 0; i < LIGHTS; i++) {
        float f = float(i);
        vec2 c = (vec2(0.5) + 0.42 * vec2(sin(f * 2.3 + iTime * 0.4 + f * f * 0.05), cos(f * 1.7 + iTime * 0.3))) * iResolution.xy;
        float r = 40.0 + 55.0 * fract(sin(f * 12.9) * 4375.0);
        vec2 q = clamp(c, tileMin, tileMax);
        if (distance(q, c) < r) cnt++;
        float d = distance(fragCoord, c);
        lit += smoothstep(r, 0.0, d) * smoothstep(r, 0.0, d);
        ring = min(ring, abs(d - r));
        cdist = min(cdist, d);
    }
    float x = float(cnt) / 6.0;
    vec3 heat = clamp(vec3(1.5 * x, 1.5 - abs(3.0 * x - 1.5), 1.5 - 1.5 * x), 0.0, 1.0);
    vec3 col = mix(vec3(0.04, 0.05, 0.08), heat * 0.55, cnt > 0 ? 1.0 : 0.0);
    col += vec3(1.0, 0.9, 0.7) * lit * 0.12;
    vec2 g = fract(fragCoord / TILE);
    col = mix(col, vec3(0.0), (g.x < 0.04 || g.y < 0.04) ? 0.55 : 0.0);
    col = mix(col, vec3(1.0), smoothstep(1.2, 0.5, ring) * 0.7);
    col = mix(col, vec3(1.0), smoothstep(4.0, 2.5, cdist));
    fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}

```

Attribution: written for this index

## Lineage

- extends [Deferred shading (G-buffer)](https://texelatlas.vercel.app/t/deferred-shading.md)
- extended by [Clustered forward shading](https://texelatlas.vercel.app/t/clustered-forward-shading.md)

## Combines with

- [Hierarchical-Z occlusion culling](https://texelatlas.vercel.app/t/hierarchical-z-occlusion-culling.md): The depth pre-pass gives per-tile min and max depth for light culling and the pyramid for object culling.

## Sources

1. [primary] Ola Olsson, Ulf Assarsson (2011) Tiled Shading. Journal of Graphics, GPU, and Game Tools. https://doi.org/10.1080/2151237x.2011.621761 (verified via crossref on 2026-11-29)
2. [primary] Ola Olsson, Markus Billeter, Ulf Assarsson (2012) Tiled and clustered forward shading. ACM SIGGRAPH 2012 Posters on - SIGGRAPH '12. https://doi.org/10.1145/2343045.2343095 (verified via crossref on 2026-11-29)

## Cite this entry

Texel. "Tiled deferred shading." https://texelatlas.vercel.app/t/tiled-deferred-shading/ (accessed 2026-12-01).
