summaryrefslogtreecommitdiff
path: root/test/test_reemission.py
AgeCommit message (Collapse)Author
2021-05-09make bulk reemission isotropicAndy Mastbaum
2021-05-09more unit test fixesAndy Mastbaum
update remaining unit tests to build BVHs with ``loader.create_geometry_from_obj`` instead of the (removed) ``build`` method.
2021-05-09update unit test bvh buildingAndy Mastbaum
2021-05-09add simple bulk reemissionAndy Mastbaum
The ``Material`` struct now includes two new arrays: ``reemission_prob`` and ``reemission_cdf``. The former is sampled only when a photon is absorbed, and should be normalized accordingly. The latter defines the distribution from which the reemitted photon wavelength is drawn. This process changes the photon wavelength in place, and is not capable of producing multiple secondaries. It also does not enforce energy conservation; the reemission spectrum is not itself wavelength-dependent.