Raytracer using multiple importance sampling