Although the sun light comes from the top to the bottom of the atmosphere, the troposphere is primarily heated from the bottom. This is because the surface is much better at absorbing a wide range of solar radiation as compared to the air. Much of the sunlight filters down through the air and to the surface.