diff --git a/src/integrators/path/volpath.cpp b/src/integrators/path/volpath.cpp index ef180221..788c3c8e 100644 --- a/src/integrators/path/volpath.cpp +++ b/src/integrators/path/volpath.cpp @@ -195,7 +195,7 @@ public: && (!m_hideEmitters || scattered)) { Spectrum value = throughput * scene->evalEnvironment(ray); if (rRec.medium) - value *= rRec.medium->evalTransmittance(ray); + value *= rRec.medium->evalTransmittance(ray, rRec.sampler); Li += value; }