Shadows, spheres, and planes implemented in raytracer