Fixed a bug in the extended volumetric path tracer concerning materials with a dirac delta BSDF
parent
cbe5de3a01
commit
97a0d7dd2d
src/integrators/path
|
@ -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)) ?
|
||||
|
|
Loading…
Reference in New Issue