Skip to main content

Module geometry

Module geometry 

Source
Expand description

Microfacet masking-shadowing functions.

Functions§

cook_torrance_g
Cook-Torrance masking term.
implicit_g
Implicit (uncorrelated) geometry term — G = NdotV * NdotL.
kelemen_szirmay_kalos_g
Kelemen-Szirmay-Kalos simplified G term.
neumann_g
Neumann geometry term.
schlick_ggx_g1
Schlick approximation of the GGX G1 term.
smith_beckmann
Smith geometry term using the Beckmann distribution.
smith_ggx
Smith GGX masking-shadowing — product of two G1 terms (view + light).
smith_ggx_ibl
Smith GGX — IBL variant uses k = α² / 2.