Update Whitted tracer method 'trace_ray'.