Modified Pathtracer for multiple rebounds