A simple Python raytracer that supports spheres with configurable "material" properties (base color and a bunch of
light coefficients). To generate a raytraced image of the pre-defined scene, run: python raytracer.py
and open
image.ppm
with a PPM-compatible viewer (eog
works fine on Linux):
I found the following resources extremely helpful: