Skip to content

Commit

Permalink
PRBVolpath: only use the cloned sampler for the adjoint NEE phase, to…
Browse files Browse the repository at this point in the history
… get consistent interactions with the primal one
  • Loading branch information
bathal1 committed Jul 20, 2023
1 parent 0fe80f3 commit a946691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/python/ad/integrators/prbvolpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def sample(self,

nee_sampler = sampler if is_primal else sampler.clone()
emitted, ds = self.sample_emitter(mei, si, active_e_medium, active_e_surface,
scene, nee_sampler, medium, channel, active_e, mode=dr.ADMode.Primal)
scene, sampler, medium, channel, active_e, mode=dr.ADMode.Primal)

# Query the BSDF for that emitter-sampled direction
bsdf_val, bsdf_pdf = bsdf.eval_pdf(ctx, si, si.to_local(ds.d), active_e_surface)
Expand Down

0 comments on commit a946691

Please sign in to comment.