From 9d038c5caff7a173b208304d8eebb9ba6e2c0f17 Mon Sep 17 00:00:00 2001 From: Wentao Liu Date: Wed, 11 Oct 2023 11:24:16 +0800 Subject: [PATCH] replace SampledSpectrum(X) with X in AOIntegrator::Li() to simplify computation --- src/pbrt/cpu/integrators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pbrt/cpu/integrators.cpp b/src/pbrt/cpu/integrators.cpp index a2f15f96b..dd74d06cd 100644 --- a/src/pbrt/cpu/integrators.cpp +++ b/src/pbrt/cpu/integrators.cpp @@ -1454,7 +1454,7 @@ SampledSpectrum AOIntegrator::Li(RayDifferential ray, SampledWavelengths &lambda Ray r = isect.SpawnRay(wi); if (!IntersectP(r, maxDist)) { return illumScale * illuminant.Sample(lambda) * - SampledSpectrum(Dot(wi, n) / (Pi * pdf)); + Dot(wi, n) / (Pi * pdf); } } return SampledSpectrum(0.);