One of the findings is that exposure to UV rays actually releases endorphins in the body. If you're not familiar, endorphins release that 'feel good' emotion in our bodies. Along with endorphins, vitamin D which is something that our bodies obtain from the UV rays is said to help us with a mood boost.