The Ray Tracer
In the beginning... we started with Gouraud Shading
This is the final result of my ray tracer which was written in C++. I worked on this for MAT 594G using the starter code provided by the professor. I wrote the code to create the two spheres, the small red one (Phong Shading), and the big blue one (Gouraud Shading). I wrote the algorithms for the 2 types of shading as well as for the creation of the shadow. The logic behind creating the shadow is that a ray of light is shot from the light source to every pixel, if it hits something before hitting that particular pixel, then that pixel ends up in shadow as shown.