fixed a MI issue involving direct lighting computations through index-matched medium transitions

metadata
Wenzel Jakob 2013-01-09 22:37:07 -05:00
parent 79e019612a
commit 416f4fb6ab
1 changed files with 1 additions and 2 deletions

View File

@ -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 */