Fixed a bug in the extended volumetric path tracer concerning materials with a dirac delta BSDF

metadata
Wenzel Jakob 2010-11-25 22:04:12 +01:00
parent cbe5de3a01
commit 97a0d7dd2d
1 changed files with 1 additions and 2 deletions
src/integrators/path

View File

@ -252,8 +252,7 @@ public:
/* If a luminaire was hit, estimate the local illumination and
weight using the power heuristic */
if (hitLuminaire && (rRec.type & RadianceQueryRecord::EDirectRadiance)
&& !(bRec.sampledType & BSDF::EDelta)) {
if (hitLuminaire && rRec.type & RadianceQueryRecord::EDirectRadiance) {
lRec.Le = lRec.luminaire->Le(lRec);
/* Prob. of having generated this sample using luminaire sampling */
const Float lumPdf = (!(bRec.sampledType & BSDF::EDelta)) ?