From 97a0d7dd2da97ba167c646898c3b790753389b97 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 25 Nov 2010 22:04:12 +0100 Subject: [PATCH] Fixed a bug in the extended volumetric path tracer concerning materials with a dirac delta BSDF --- src/integrators/path/volpath.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/integrators/path/volpath.cpp b/src/integrators/path/volpath.cpp index ded564c2..5c51db08 100644 --- a/src/integrators/path/volpath.cpp +++ b/src/integrators/path/volpath.cpp @@ -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)) ?