From 175da3a314f2d88000363694ed0b17ae75e0ab89 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 11 Feb 2013 22:07:38 -0500 Subject: [PATCH] rectangle shape: store UV position in sampleArea() --- src/shapes/rectangle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapes/rectangle.cpp b/src/shapes/rectangle.cpp index 73c2cad8..2be94648 100644 --- a/src/shapes/rectangle.cpp +++ b/src/shapes/rectangle.cpp @@ -212,6 +212,7 @@ public: pRec.n = m_frame.n; pRec.pdf = m_invSurfaceArea; pRec.measure = EArea; + pRec.uv = sample; } Float pdfPosition(const PositionSamplingRecord &pRec) const {