final path tracer with stream compaction