Meaning: This means that the sun was shining brightly and pleasantly on the world while most people were asleep.
Choice of Words: Smiled suggests a friendly and pleasant expression, warmly means in a friendly and comforting manner, and sleeping world refers to the world when most people are asleep.