 The surfaces of a scene can be divided into a large amount of patches; each patch radiates some light and affects the other patches, then a large set of equations needs to be solved simultaneously in order to get the final radiosity of each patch.Photon mapping was created as a two-pass global illumination algorithm that is more efficient than raytracing.It is the basic principle of tracking photons released from a light source through a series of stages.