Skip to content
Snippets Groups Projects
Commit a24c074c authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

getDiffuseReflectance() implementation for twosided.cpp

parent f2e8e796
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment