Fixed a bug in the extended volumetric path tracer concerning materials with a dirac delta BSDF
parent
cbe5de3a01
commit
97a0d7dd2d
|
@ -252,8 +252,7 @@ public:
|
||||||
|
|
||||||
/* If a luminaire was hit, estimate the local illumination and
|
/* If a luminaire was hit, estimate the local illumination and
|
||||||
weight using the power heuristic */
|
weight using the power heuristic */
|
||||||
if (hitLuminaire && (rRec.type & RadianceQueryRecord::EDirectRadiance)
|
if (hitLuminaire && rRec.type & RadianceQueryRecord::EDirectRadiance) {
|
||||||
&& !(bRec.sampledType & BSDF::EDelta)) {
|
|
||||||
lRec.Le = lRec.luminaire->Le(lRec);
|
lRec.Le = lRec.luminaire->Le(lRec);
|
||||||
/* Prob. of having generated this sample using luminaire sampling */
|
/* Prob. of having generated this sample using luminaire sampling */
|
||||||
const Float lumPdf = (!(bRec.sampledType & BSDF::EDelta)) ?
|
const Float lumPdf = (!(bRec.sampledType & BSDF::EDelta)) ?
|
||||||
|
|
Loading…
Reference in New Issue