photonmapping
Photon mapping is a two-pass global illumination algorithm used in computer graphics to simulate the behavior of light. The first pass, known as the photon tracing pass, simulates the emission of photons from light sources. These photons travel through the scene, bouncing off surfaces according to their material properties, and are stored in a data structure called a photon map. This map effectively records the distribution and intensity of light energy throughout the scene.
The second pass, the rendering pass, calculates the final image. For each pixel being rendered, a ray