# Is the resulting light from a supernova a product of photons bouncing around in the Sun?

I was thinking about how photons formed in the centre of the Sun take quite a long time to exit the surface. And it occurred to me that at the end of a star's life (during a supernova, given that it's big enough) all the photons that had built up in the radiation zone would be emitted at that point. Is the resulting emission of all those built-up photons what produces the great source of light seen during a supernova, or is it simply a contributor?

First, the Sun will not end up as a supernova - only a star $$>8$$ times the mass of the Sun will end its life in that way.