base pathtracing