Simple ray tracer for spheres and planes