More work on path tracer.