fixed stupid bug in Disk::samplePosition()
parent
fe2af35337
commit
8d20ce4344
|
@ -249,7 +249,7 @@ public:
|
||||||
Point2 p = warp::squareToUniformDiskConcentric(sample);
|
Point2 p = warp::squareToUniformDiskConcentric(sample);
|
||||||
|
|
||||||
pRec.p = trafo(Point3(p.x, p.y, 0));
|
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.pdf = m_invSurfaceArea;
|
||||||
pRec.measure = EArea;
|
pRec.measure = EArea;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue