This ray tracer is heavily inspired by Ray Tracing in One Weekend
The fast ray/triangle intersection of the following article is used:
Doug Baldwin and Michael Weber, Fast Ray-Triangle Intersections by Coordinate Transformation, Journal of Computer Graphics Techniques (JCGT), vol. 5, no. 3, 39-49, 2016, http://jcgt.org/published/0005/03/03/
Here is the final scene of Ray Tracing: The Next Week:
Finnaly, here is a Cornell Box from Ray Tracing: The Rest of Your Life rendered with some importance sampling:



