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) {
|
if (phaseVal != 0) {
|
||||||
/* Calculate prob. of having sampled that direction using
|
/* Calculate prob. of having sampled that direction using
|
||||||
phase function sampling */
|
phase function sampling */
|
||||||
Float phasePdf = (emitter->isOnSurface() && dRec.measure == ESolidAngle
|
Float phasePdf = (emitter->isOnSurface() && dRec.measure == ESolidAngle)
|
||||||
&& interactions == 0)
|
|
||||||
? phase->pdf(pRec) : (Float) 0.0f;
|
? phase->pdf(pRec) : (Float) 0.0f;
|
||||||
|
|
||||||
/* Weight using the power heuristic */
|
/* Weight using the power heuristic */
|
||||||
|
|
Loading…
Reference in New Issue