diff --git a/src/integrators/photonmapper/photonmapper.cpp b/src/integrators/photonmapper/photonmapper.cpp index 02d826f9..394a584d 100644 --- a/src/integrators/photonmapper/photonmapper.cpp +++ b/src/integrators/photonmapper/photonmapper.cpp @@ -277,7 +277,7 @@ public: /* Generate the caustic photon map */ ref proc = new GatherPhotonProcess( GatherPhotonProcess::ECausticPhotons, m_causticPhotons, - m_granularity, 3, m_rrDepth, m_gatherLocally, + m_granularity, m_maxDepth-1, m_rrDepth, m_gatherLocally, m_autoCancelGathering, job); proc->bindResource("scene", sceneResID);