From 981c46c8946607de64550c6d5faede8c6900216e Mon Sep 17 00:00:00 2001 From: Lin Hsu Date: Wed, 2 May 2018 00:47:47 +0800 Subject: [PATCH] min_t should be Epsilon instead of ShadowEpsilon --- src/subsurface/singlescatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subsurface/singlescatter.cpp b/src/subsurface/singlescatter.cpp index 6d6b380b7..fa4f137c7 100644 --- a/src/subsurface/singlescatter.cpp +++ b/src/subsurface/singlescatter.cpp @@ -679,7 +679,7 @@ class SingleScatter : public Subsurface { if (m_singleScatterShadowRays) { // Shadow test 1: is the outgoing point visible from the light // source? - const Ray shadow1 = Ray(Pc, omegaL, ShadowEpsilon, + const Ray shadow1 = Ray(Pc, omegaL, Epsilon, domegaL * (1 - ShadowEpsilon), time); if (scene->rayIntersect(shadow1)) { return Spectrum(0.0f);