A pathtracer