Skip to content

Commit

Permalink
SPPM: don't trace rays with zero contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed May 12, 2018
1 parent 924ad92 commit 8cdce12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/integrators/sppm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ void SPPMIntegrator::Render(const Scene &scene) {
RayDifferential ray;
Spectrum beta =
camera->GenerateRayDifferential(cameraSample, &ray);
if (beta.IsBlack())
continue;
ray.ScaleDifferentials(invSqrtSPP);

// Follow camera ray path until a visible point is created
Expand Down

0 comments on commit 8cdce12

Please sign in to comment.