Add n_photons's effect to spectrum.