Chapter 20. GPU-Based Importance Sampling

Because BRDFs are a part of the integration, they serve as a good measure to guide the simpling to produce directions that best approximate the integral. Here, we use a normalized BRDF as the PDF for sampling. To sample this PDF, we convert a random number pair into an important direction for the BRDF.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b225ee62-d052-4cbe-836b-60d231486789/Untitled.png

注意此时求出来的 specular direction 朝向 z 轴

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6c6cedc0-6ed3-4e00-906b-7310c8b0a493/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/62c5ec15-6330-470e-bc78-bdfbec70959f/Untitled.png

$$ \theta_s = P^{-1}(Uniform Sampling) $$