fixed stupid bug in Disk::samplePosition()

metadata
Wenzel Jakob 2015-11-20 17:59:49 +01:00
parent fe2af35337
commit 8d20ce4344
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ public:
Point2 p = warp::squareToUniformDiskConcentric(sample);
pRec.p = trafo(Point3(p.x, p.y, 0));
pRec.n = trafo(normalize(Normal(0,0,1)));
pRec.n = normalize(trafo(Normal(0, 0, 1)));
pRec.pdf = m_invSurfaceArea;
pRec.measure = EArea;
}