Skip to content

Commit

Permalink
replace SampledSpectrum(X) with X in AOIntegrator::Li() to simplify c…
Browse files Browse the repository at this point in the history
…omputation
  • Loading branch information
w3ntao committed Oct 11, 2023
1 parent ffdc498 commit 9d038c5
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 9d038c5

Please sign in to comment.