Separate Trace and Shade functionality in raytracer.