Skip to content

Commit

Permalink
Merge pull request #389 from w3ntao/fix-2023-10-11
Browse files Browse the repository at this point in the history
replace SampledSpectrum(X) with X in AOIntegrator::Li() to simplify computation
  • Loading branch information
mmp committed Oct 13, 2023
2 parents ffdc498 + 9d038c5 commit b5be145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pbrt/cpu/integrators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.);
Expand Down

0 comments on commit b5be145

Please sign in to comment.