Developer knowledge network · moderated exchange

UnreliableCode-Community

Community für Entwicklerforschung, Reverse Engineering und Codierung

Knowledge indexLive
4Categories
919Threads
2.8KBeiträge
Tutorial

Physically Based Rendering (PBR): Cook-Torrance Microfacet Specular BRDF Formulation [StackOverflow Architecture Guide]

shader_magician
HLSL / GLSL Dev
MEMBER
Vertreter: 176
Beitrittsdatum: Jan 2021
Beiträge: 8
Danke: 32
Vor 1 Monaten · Jul 6, 2026 2:12 PM
#1

The mathematical formula behind realistic metallic and dielectric surface reflections in PBR:

$$f_{\text{Cook-Torrance}} = \frac{D(N, H) \cdot F(V, H) \cdot G(N, V, L)}{4(N \cdot V)(N \cdot L)}$$

  • $D$ (GGX Normal Distribution Function): Simulates microfacet roughness alignment.
  • $F$ (Fresnel-Schlick): Increases reflectance at grazing viewing angles.
  • $G$ (Smith Geometry Shadowing): Accounts for microfacets shadowing each other.

Energy-conserving: material reflections never exceed incoming light energy!

matrix_math_guy
Math Specialist
MEMBER
Vertreter: 105
Beitrittsdatum: Aug 2018
Beiträge: 52
Danke: 41
Vor 1 Monaten · Jul 6, 2026 8:10 PM
#2

The Cook-Torrance BRDF with GGX distribution is what makes metallic and rough materials look indistinguishable from real life.

graphics_pipeline_pro
DirectX / Vulkan Engineer
MEMBER
Vertreter: 172
Beitrittsdatum: Sep 2018
Beiträge: 10
Danke: 51
Vor 1 Monaten · Jul 7, 2026 3:56 AM
#3

Clean mathematical breakdown.