On a warm summer's day, light starts playing tricks, giving rise to shimmering heat haze and mirages. Air expands as it warms up and this affects the speed of light travelling through it. Light goes faster through thinner warm air than denser cold air.