햇빛 only means 'sun' as a clipping of 'sunshine' or 'sunlight', which we get by an extremely common process called metonymy, in this case part-whole metonymy, where the rays of the sun are referred to by the sun itself. 해 is the actual word for the celestial body in space.