If gamma rays are produced in the Sun's core and are invisible to the eye, where does sunlight come from?

By the time they make it to the solar surface after a million years or more of bouncing around inside the Sun, their energies are degraded through interactions with matter so that they carry only about as much energy as visible light photons.