fixed a MI issue involving direct lighting computations through index-matched medium transitions
parent
79e019612a
commit
416f4fb6ab
|
@ -130,8 +130,7 @@ public:
|
|||
if (phaseVal != 0) {
|
||||
/* Calculate prob. of having sampled that direction using
|
||||
phase function sampling */
|
||||
Float phasePdf = (emitter->isOnSurface() && dRec.measure == ESolidAngle
|
||||
&& interactions == 0)
|
||||
Float phasePdf = (emitter->isOnSurface() && dRec.measure == ESolidAngle)
|
||||
? phase->pdf(pRec) : (Float) 0.0f;
|
||||
|
||||
/* Weight using the power heuristic */
|
||||
|
|
Loading…
Reference in New Issue