2D photon tracer