top of page

C++

Implemented ray-object intersection. Rendered scenes have colors based on surface normals.

​

Triangle intersection using  Moller-Trumbore algorithm. The shading normal for a triangle is computed by linear interpolation from per-vertex normals using the barycentric coordinates of the hit point as their weights.

bottom of page