Implemented basic (working) adaptive/live pathtracing.