Here are two pictures of the sun at the same time using the open source Stellarium software. The first has the atmosphere turned on. The second has the atmosphere turned off. Note the sun's different positions. The truth is, when you watch a sunrise or a sunset, you aren't really looking at the sun.