Course Website: https://sites.cs.ucsb.edu/~lingqi/teaching/games101.html
Implement Möller-Trumbore algorithm to do ray-triangle intersection.
Note: Check tnear < 0
before for invalid ray directions.
Reference: Ray Tracing: Rendering a Triangle, Scratchapixel
Implement AABB intersection and BVH lookup algorithm.
Implement path tracing algorithm in castRay
.