Stick a soda straw into a glass of water, and from the side, the straw will appear to bend at the interface between air and water. That effect is caused by the different refractive indexes of the air ...