---
id: "cook-torrance-brdf"
title: "Cook-Torrance microfacet BRDF"
aliases: [Cook-Torrance, GGX Microfacet BRDF, GGX Smith Specular]
domain: "materials"
stage: "material"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot, blender]
year_introduced: 1982
inputs: [material-params, normals]
outputs: [radiance]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Cook & Torrance, 1982"
url: "https://texelatlas.vercel.app/t/cook-torrance-brdf/"
sources_verified_at: "2026-11-29"
---
# Cook-Torrance microfacet BRDF (Cook & Torrance, 1982)

> The original microfacet specular model: reflectance as D*F*G / (4 n.l n.v), with a facet-normal distribution D, Fresnel F and a geometric shadowing/masking term G. Nearly every modern PBR shader is a variant of this skeleton.

## Reach for it when

- need a physically based specular shader from scratch
- debugging which factor causes a specular artifact
- highlights should depend on roughness and viewing angle
- want to understand how pbr specular is built

## How it works

Cook and Torrance model a rough surface as a sea of tiny perfect mirrors. Only facets whose normal equals the half vector between light and view direction can reflect light from l into v, so the BRDF is proportional to the density of such facets, D(h). Fresnel F(v.h) says how much of that light each facet reflects, and G accounts for facets hiding or shadowing their neighbours. The product is divided by 4(n.l)(n.v), the Jacobian converting facet-space measure to outgoing-direction measure. The 1982 paper used a Beckmann distribution and a V-groove G; later work swapped each factor (GGX for D, Smith for G, Schlick for F) while keeping the structure. Diffuse is added separately, typically Lambert weighted by (1-F) and (1-metalness).

## When to use it

Choose it as the conceptual template when you write or debug any microfacet shader, or when you need to reason about which factor causes an artifact. For production, use the modern factor choices: [GGX / Trowbridge-Reitz normal distribution](https://texelatlas.vercel.app/t/ggx-trowbridge-reitz.md) for D and [Smith masking-shadowing function](https://texelatlas.vercel.app/t/smith-masking-shadowing.md) for G. Prefer [Disney principled BRDF](https://texelatlas.vercel.app/t/disney-principled-brdf.md) or [OpenPBR Surface](https://texelatlas.vercel.app/t/openpbr-surface.md) when you need an artist-facing parameter set rather than a bare specular lobe. Prefer [Oren-Nayar rough diffuse](https://texelatlas.vercel.app/t/oren-nayar.md) when the surface is rough diffuse with no specular lobe.

## Cost

cheap — A few dot products, one pow/exp and one divide per light; negligible next to texture fetches.
Measured GPU Weight: 1.88× baseline (feather) — 0.062 ms median / 0.0688 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 1.65× baseline (feather) — 0.0263 ms median (2.36× faster on L4).
Ampere A100 scaling: 1.26× baseline (feather) — 0.0364 ms median (1.7× faster on A100).

## Failure modes

- Beckmann D has short tails, so highlights look too tight and lack the soft halo seen on real materials
- Energy is lost at high roughness because single-scattering G ignores light that bounces between facets (see kulla-conty-multiscatter)
- Division by n.l n.v blows up at grazing angles unless clamped or folded into a visibility term
- Original V-groove G is not height-correlated with D, so energy conservation is only approximate

## Engine support

- babylonjs: builtin — `new BABYLON.PBRMaterial('m', scene)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Materials/PBR/pbrBaseMaterial.pure.ts, checked 2026-12-01)
- blender: builtin — `Shader Editor > Add > Shader > Glossy BSDF (Distribution = GGX / Multiscatter GGX) or Principled BSDF` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/shader/glossy.html, checked 2026-12-01) — GGX microfacet specular model.
- godot: builtin — `StandardMaterial3D default specular BRDF (SPECULAR_SCHLICK_GGX)` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/BaseMaterial3D.xml, checked 2026-12-01)
- threejs: builtin — `MeshStandardMaterial / MeshPhysicalMaterial` (evidence: https://github.com/mrdoob/three.js/blob/r187/src/nodes/functions/BSDF/BRDF_GGX.js, checked 2026-12-01)
- unity: builtin — `Lit shaders in URP and HDRP` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.core/ShaderLibrary/BSDF.hlsl, checked 2026-12-01) — Lit shaders use a GGX microfacet specular BRDF.
- unreal: builtin — `Material > Shading Model = Default Lit (Cook-Torrance microfacet specular BRDF)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/physically-based-materials-in-unreal-engine, checked 2026-12-01)

## Dataflow

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

## Presets

### Gold, medium-rough (three-material; rendered 2026-11-29)

```json
{
  "color": "#ffe496",
  "roughness": 0.3,
  "metalness": 1
}
```

Attribution: written for this index; colour, IOR and metalness from physicallybased.info (CC0), roughness chosen here; basis: 2

### Copper, brushed-looking (three-material; rendered 2026-11-29)

```json
{
  "color": "#f7cfbf",
  "roughness": 0.4,
  "metalness": 1
}
```

Attribution: written for this index; colour, IOR and metalness from physicallybased.info (CC0), roughness chosen here; basis: 2

## Lineage

- extended by [GGX / Trowbridge-Reitz normal distribution](https://texelatlas.vercel.app/t/ggx-trowbridge-reitz.md)

## Combines with

- [Kulla-Conty multiple-scattering compensation](https://texelatlas.vercel.app/t/kulla-conty-multiscatter.md): Adds back the energy the single-scatter Cook-Torrance lobe loses at high roughness.

## Sources

1. [primary] R. L. Cook, K. E. Torrance (1982) A Reflectance Model for Computer Graphics. ACM Transactions on Graphics. https://doi.org/10.1145/357290.357293 (verified via crossref on 2026-11-29)
2. [tutorial] Joey de Vries PBR Theory. learnopengl.com. https://learnopengl.com/PBR/Theory (verified via http on 2026-11-29)
3. [dataset] Anton Palmqvist physicallybased.info. physicallybased.info. https://physicallybased.info/ (verified via http on 2026-11-29)

## Cite this entry

Texel. "Cook-Torrance microfacet BRDF." https://texelatlas.vercel.app/t/cook-torrance-brdf/ (accessed 2026-12-01).
