A primitive raytracer