The change in direction of light and sound due the density of the materials it passes through and those materials effects on its speed.