What happens to light when it passes from a gas to a liquid or solid material?

A) There is no change
B) He waves speed up
C) The light waves maintain speed and are absorbed
D) The light waves slow down and refract