Developer knowledge network ยท moderated exchange

Onbetrouwbare Code-gemeenschap

Ontwikkelaarsonderzoek, reverse engineering en coderingsgemeenschap

Knowledge indexLive
4Categories
919Threads
2.8KBerichten
Tutorial

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

shader_magician
HLSL / GLSL Dev
MEMBER
Vertegenwoordiger: 176
Datum van deelname: Jan 2021
Berichten: 8
Bedankt: 32
1 maanden geleden ยท 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
Vertegenwoordiger: 105
Datum van deelname: Aug 2018
Berichten: 52
Bedankt: 41
1 maanden geleden ยท 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
Vertegenwoordiger: 172
Datum van deelname: Sep 2018
Berichten: 10
Bedankt: 51
1 maanden geleden ยท Jul 7, 2026 3:56 AM
#3

Clean mathematical breakdown.