Your question is reffering to the wave function of a photon or to the photon gas problem ?
You can take a look here for the first:
The photon wave function , I. Bialynicki-Birula , Coherence and Quantum Optics VII, Eds. J.H.Eberly, L.Mandel, and E.Wolf., Plenum, New York, 1996, p. 313
You can...