Skip to main content

pdf_GGX

pdf_GGX(NoH, HoV, roughness) ⇒ number

Returns the PDF for a particular GGX sample after reflecting the view vector about a microfacet normal (includes the Jacobian for going from half vector to lighting vector)

N = surface normal L = light direction V = view direction H = normalize( V + L )

Kind: global function

ParamTypeDescription
NoHnumberdot product of N and H
HoVnumberdot product of H and V
roughnessnumber