{
 "id": "cook-torrance-brdf",
 "title": "Cook-Torrance microfacet BRDF",
 "aliases": [
  "Cook-Torrance",
  "GGX Microfacet BRDF",
  "GGX Smith Specular"
 ],
 "domain": "materials",
 "subdomain": "microfacet BRDF",
 "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",
 "summary": "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.",
 "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": "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` for D and `smith-masking-shadowing` 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` when the surface is rough diffuse with no specular lobe.",
 "cost": {
  "class": "cheap",
  "notes": "A few dot products, one pow/exp and one divide per light; negligible next to texture fetches."
 },
 "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/357290.357293",
   "type": "paper",
   "title": "A Reflectance Model for Computer Graphics",
   "authors": [
    "R. L. Cook",
    "K. E. Torrance"
   ],
   "year": 1982,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/357290.357293",
   "ids": {
    "doi": "10.1145/357290.357293"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/357290.357293",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/357290.357293",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/357290.357293",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/357290.357293",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/357290.357293",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "cook1982reflectance"
  },
  {
   "role": "tutorial",
   "key": "url:https://learnopengl.com/PBR/Theory",
   "type": "tutorial",
   "title": "PBR Theory",
   "authors": [
    "Joey de Vries"
   ],
   "year": null,
   "venue": "learnopengl.com",
   "url": "https://learnopengl.com/PBR/Theory",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261022150728/https://learnopengl.com/PBR/Theory",
     "timestamp": "20261022150728"
    },
    "page_title": "LearnOpenGL - Theory",
    "host": "learnopengl.com",
    "title_confirmed_by_page": false,
    "title_unconfirmed": true
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://learnopengl.com/PBR/Theory → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://learnopengl.com/PBR/Theory → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.5,
   "__bib": "vriestheory"
  },
  {
   "role": "dataset",
   "key": "url:https://physicallybased.info/",
   "type": "dataset",
   "title": "physicallybased.info",
   "authors": [
    "Anton Palmqvist"
   ],
   "year": null,
   "venue": "physicallybased.info",
   "url": "https://physicallybased.info/",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261126071531/https://physicallybased.info/",
     "timestamp": "20261126071531"
    },
    "page_title": "Physically Based - The PBR values database",
    "host": "physicallybased.info",
    "title_confirmed_by_page": false,
    "title_unconfirmed": true
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://physicallybased.info/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "http",
     "endpoint": "GET https://physicallybased.info/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://physicallybased.info/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0,
   "__bib": "palmqvistphysicallybased"
  }
 ],
 "presets": [
  {
   "id": "cook-torrance-gold",
   "title": "Gold, medium-rough",
   "runtime": "three-material",
   "params": {
    "color": "#ffe496",
    "roughness": 0.3,
    "metalness": 1
   },
   "basis": 2,
   "license_note": "written for this index; colour, IOR and metalness from physicallybased.info (CC0), roughness chosen here",
   "execution_fidelity": "faithful-pass",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "cook-torrance-brdf",
     "runtime": "three-material",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6682,
      "std": 0.0898,
      "unique_colors": 99
     },
     "image": "/specimens/cook-torrance-gold.webp",
     "reason": null
    }
   }
  },
  {
   "id": "cook-torrance-copper",
   "title": "Copper, brushed-looking",
   "runtime": "three-material",
   "params": {
    "color": "#f7cfbf",
    "roughness": 0.4,
    "metalness": 1
   },
   "basis": 2,
   "license_note": "written for this index; colour, IOR and metalness from physicallybased.info (CC0), roughness chosen here",
   "execution_fidelity": "faithful-pass",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "cook-torrance-brdf",
     "runtime": "three-material",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.672,
      "std": 0.0861,
      "unique_colors": 65
     },
     "image": "/specimens/cook-torrance-copper.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "ggx-trowbridge-reitz",
  "smith-masking-shadowing",
  "disney-principled-brdf",
  "oren-nayar"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "kulla-conty-multiscatter",
   "why": "Adds back the energy the single-scatter Cook-Torrance lobe loses at high roughness."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/materials/cook-torrance-brdf.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Cook & Torrance, 1982",
 "url": "https://texelatlas.vercel.app/t/cook-torrance-brdf/",
 "execution_fidelity": "faithful-pass",
 "fidelity_label": "Faithful Pass",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 1.88,
  "tier": "feather",
  "p50_ms": 0.062,
  "p95_ms": 0.0688,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "cook-torrance-gold",
  "execution_fidelity": "faithful-pass",
  "fidelity_label": "Faithful Pass",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 1.65,
   "tier": "feather",
   "p50_ms": 0.0263,
   "p95_ms": 0.0264,
   "speedup_x": 2.36,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 1.26,
   "tier": "feather",
   "p50_ms": 0.0364,
   "p95_ms": 0.0365,
   "speedup_x": 1.7,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}