mitsuba
mitsuba copied to clipboard
Exclude photons in opposite side
This PR fixes the problem of the wrong radius update (#145).
I added three lines of code that prevent photons to be stored in KD-tree when the surface normal and the incoming direction of a photon is not on the same side.
Below is the results before/after the change
(Breakfast Room from link, iteration=100, photons per iteration=250K)
Before
After
After the change, it's less noisy due to the larger radius than before.