A (very) simple raytracer written in the D programming language.
- Smooth shadows
- Anti-aliasing
- Open a terminal in the
source
directory. - Execute
rdmd main.d
After about 25" the image below will appear.
The raytracer builds a Bounding Volume Hierarchy from the objects in the scene. This helps a lot since when testing for ray interesctions, not all objects have to checked. The BVH Tree is data structure is defined and created in BVH.d.
MIT