Computer graphics class project.
In this seventh version, we introduce a new shader: the cartoon (cel) shader. Each sphere needs be of gradient material, with the number of partitions and colors and proportions for each one specified.
This is an image created using the Cartoon shader:
In this version, we also introduce two new lights: point and spotlight.
These are images using spotlights (with the Blinn-Phong shader):
Run make
Run ./renderer 5 && open images/5.ppm
Data set 5 is the one that generated the cartoon example image. You can choose other data sets, just change the number 5 to the number of the data set you want to use. The other images were generated using data sets 9 and 8, respectively.