From 8d20ce43442c4ebc5e52974c35f5ffc9d2bc0d09 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 20 Nov 2015 17:59:49 +0100 Subject: [PATCH] fixed stupid bug in Disk::samplePosition() --- src/shapes/disk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/disk.cpp b/src/shapes/disk.cpp index 232ad6c0..32108d7b 100644 --- a/src/shapes/disk.cpp +++ b/src/shapes/disk.cpp @@ -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; }