Cook-Torrance microfacet BRDF
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.
Also known as Cook-Torrance, GGX Microfacet BRDF, GGX Smith Specular
In the family Materials, BRDFs & texturing, microfacet BRDF
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | MeshStandardMaterial / MeshPhysicalMaterial docs |
| Babylon.js 9.38.0 | Built in | new BABYLON.PBRMaterial('m', scene) docs |
| Godot 4.7 | Built in | StandardMaterial3D default specular BRDF (SPECULAR_SCHLICK_GGX) docs |
| Unity | Built in | Lit shaders in URP and HDRP docs Lit shaders use a GGX microfacet specular BRDF. |
| Unreal 5.7 | Built in | Material > Shading Model = Default Lit (Cook-Torrance microfacet specular BRDF) docs |
| Blender 5.2 | Built in | Shader Editor > Add > Shader > Glossy BSDF (Distribution = GGX / Multiscatter GGX) or Principled BSDF docs GGX microfacet specular model. |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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 for D and Smith masking-shadowing function for G. Prefer Disney principled BRDF or OpenPBR Surface when you need an artist-facing parameter set rather than a bare specular lobe. Prefer Oren-Nayar rough diffuse when the surface is rough diffuse with no specular lobe.
Field marks
- 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
Presets
Gold, medium-rough
{
"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
{
"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
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| cook-torrance-gold | Tesla T4 1920x1080 | 1.88× baseline (feather) · 0.062 ms / 0.069 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| cook-torrance-gold | NVIDIA L4 1920x1080 | 1.65× baseline (feather) · 0.026 ms / 0.026 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| cook-torrance-gold | NVIDIA A100-SXM4-40GB 1920x1080 | 1.26× baseline (feather) · 0.036 ms / 0.036 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Phong and Blinn-Phong shading; cited by Alchemy screen-space ambient obscurance, Irradiance Caching, Kulla-Conty multiple-scattering compensation, LEADR mapping, Normal distribution filtering for specular antialiasing, Single-photo SVBRDF capture, Thin-film iridescence.
Crosses
- Kulla-Conty multiple-scattering compensation: Adds back the energy the single-scatter Cook-Torrance lobe loses at high roughness.
Sources
- primaryR. L. Cook, K. E. Torrance (1982). A Reflectance Model for Computer Graphics. ACM Transactions on Graphics.Verified via crossref · 2026-11-29doi:10.1145/357290.357293
- datasetAnton Palmqvist. physicallybased.info. physicallybased.info.Verified via live page · 2026-11-29