diff --git a/src/bsdfs/twosided.cpp b/src/bsdfs/twosided.cpp index 651aaab6..b5be2408 100644 --- a/src/bsdfs/twosided.cpp +++ b/src/bsdfs/twosided.cpp @@ -195,6 +195,13 @@ public: } } + Spectrum getDiffuseReflectance(const Intersection &its) const { + if (its.wi.z > 0) + return m_nestedBRDF[0]->getDiffuseReflectance(its); + else + return m_nestedBRDF[1]->getDiffuseReflectance(its); + } + Float getRoughness(const Intersection &its, int component) const { if (component < m_nestedBRDF[0]->getComponentCount()) { return m_nestedBRDF[0]->getRoughness(its, component);