Equation 14.36 Gives mathematical expression of pdf value of layered material given $w_i$, $w_o$. But I can't understand why using brdf $p_r^+$ or btdf $p_t^+$ in equation, instead of using bsdf $p_s^+$.
And maybe it will be more clear to explain by code. Following code comes from PDF function of LayeredBxDF
I feel confused why using BxDFReflTransFlags::Reflection as sampleFlags. Maybe BxDFReflTransFlags::All should be used? Since not only reflection, transmission will also be considered later.
Equation 14.36 Gives mathematical expression of pdf value of layered material given $
w_i
$, $w_o
$. But I can't understand why using brdf $p_r^+$ or btdf $p_t^+$ in equation, instead of using bsdf $p_s^+$.And maybe it will be more clear to explain by code. Following code comes from PDF function of LayeredBxDF
I feel confused why using
BxDFReflTransFlags::Reflection
assampleFlags
. MaybeBxDFReflTransFlags::All
should be used? Since not only reflection, transmission will also be considered later.I'd appreciate any help.