Loading Dockerfile 0 → 100644 +8 −0 Original line number Diff line number Diff line FROM pbrt MAINTAINER noone <no@o.ne> RUN apt-get update -yq && apt-get install -yq \ git COPY white_background.patch /app/ RUN (cd /app/; git apply white_background.patch) RUN /usr/bin/make -j8 white_background.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/src/integrators/directlighting.cpp b/src/integrators/directlighting.cpp index 1498a9d..0377eec 100644 --- a/src/integrators/directlighting.cpp +++ b/src/integrators/directlighting.cpp @@ -67,8 +67,7 @@ Spectrum DirectLightingIntegrator::Li(const RayDifferential &ray, // Find closest ray intersection or return background radiance SurfaceInteraction isect; if (!scene.Intersect(ray, &isect)) { - for (const auto &light : scene.lights) L += light->Le(ray); - return L; + return Spectrum(1.f); } // Compute scattering functions for surface interaction Loading
Dockerfile 0 → 100644 +8 −0 Original line number Diff line number Diff line FROM pbrt MAINTAINER noone <no@o.ne> RUN apt-get update -yq && apt-get install -yq \ git COPY white_background.patch /app/ RUN (cd /app/; git apply white_background.patch) RUN /usr/bin/make -j8
white_background.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/src/integrators/directlighting.cpp b/src/integrators/directlighting.cpp index 1498a9d..0377eec 100644 --- a/src/integrators/directlighting.cpp +++ b/src/integrators/directlighting.cpp @@ -67,8 +67,7 @@ Spectrum DirectLightingIntegrator::Li(const RayDifferential &ray, // Find closest ray intersection or return background radiance SurfaceInteraction isect; if (!scene.Intersect(ray, &isect)) { - for (const auto &light : scene.lights) L += light->Le(ray); - return L; + return Spectrum(1.f); } // Compute scattering functions for surface interaction