Added debug mode showing the trace depth of each ray.