Skip to content

Commit

Permalink
Fix envmap rendering with AOV integrator
Browse files Browse the repository at this point in the history
  • Loading branch information
Speierers committed May 18, 2020
1 parent 201bf96 commit f255e50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/integrators/aov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ class AOVIntegrator final : public SamplingIntegrator<Float, Spectrum> {
std::pair<Spectrum, Mask> result { 0.f, false };

SurfaceInteraction3f si = scene->ray_intersect(ray, active);
active = si.is_valid();
si[!active] = zero<SurfaceInteraction3f>();
si[!si.is_valid()] = zero<SurfaceInteraction3f>();
size_t ctr = 0;

for (size_t i = 0; i < m_aov_types.size(); ++i) {
Expand Down

0 comments on commit f255e50

Please sign in to comment.