Skip to content

Commit

Permalink
Fix ray sampling when Film has set sample_border
Browse files Browse the repository at this point in the history
  • Loading branch information
njroussel committed Sep 28, 2023
1 parent 586300a commit c10b87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ SamplingIntegrator<Float, Spectrum>::render(Scene *scene,
idx /= dr::opaque<UInt32>(spp_per_pass);

// Compute the position on the image plane
Vector2u pos;
Vector2i pos;
pos.y() = idx / film_size[0];
pos.x() = dr::fnmadd(film_size[0], pos.y(), idx);

Expand Down

0 comments on commit c10b87b

Please sign in to comment.