3D: correcting the algorithm of photon trace
3D: correcting the algorithm of photon trace. Small change