Note: This page is still quite rough / unfinished.
NDF (normal distribution function) are typically given in terms of microfacet area. To convert to macrosurface area, we need to multiple by
So before creating sampling routines for an NDF, first multiply by
Quick reference:
To get a sampling routine given the PDF in spherical coordinate domain, first integrate out
Then use inverse transform sampling. For each function calculate the CDF by integration:
Finally set the CDF equal to a random variable and solve for the integration variable: