Rectangle::getSurfaceArea() was wrong

metadata
Wenzel Jakob 2012-10-05 00:24:15 -04:00
parent 9318ac71fb
commit 262308b9b9
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ public:
}
Float getSurfaceArea() const {
return 4 * m_dpdu.length() * m_dpdv.length();
return m_dpdu.length() * m_dpdv.length();
}
inline bool rayIntersect(const Ray &_ray, Float mint, Float maxt, Float &t, void *temp) const {