Skip to content

Commit

Permalink
fixed envmap testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Nov 9, 2021
1 parent cf76fb3 commit f0ce53e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/emitters/tests/test_envmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test02_sampling_weights(variants_vec_backends_once_rgb):

# Test the sample_ray() interface
ray, w = emitter.sample_ray(0, 0, sample, sample_2)
si.wi = -ray.d
ds.d = ray.d
si.wi = ray.d
ds.d = -ray.d
w2 = emitter.eval(si) / emitter.pdf_direction(si, ds) * ek.Pi
assert ek.allclose(w, w2, rtol=1e-3)
assert ek.allclose(w2, w, rtol=1e-3)

0 comments on commit f0ce53e

Please sign in to comment.