rectangle shape: store UV position in sampleArea()

metadata
Wenzel Jakob 2013-02-11 22:07:38 -05:00
parent 979e0fa7a0
commit 175da3a314
1 changed files with 1 additions and 0 deletions

View File

@ -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 {