Submit your homework via E-learning
Compress the code files (main.cpp, RayTracing.h, and RayTracing.cpp) to one file named StudentID_FirstName.zip
In this assignment, you will implement a basic ray tracer using Phong shading.
Code skeleton is here: main.cpp RayTracing.h RayTracing.cpp
The methods that you need to implement are marked with TODO in the code. A code skeleton is provided. You will need to implement some vector operations, object intersections, shading, and ray casting. Additionally, your code should support both perspective or orthogonal projection.
Download irfanview to open PPM images