Implements photon mapping for photorealistic rendering