Refractive index
Different transparent materials have different refractive indices, also called indices of refraction, that determine how much the path of light is bent when entering a material. A change in speed causes the change in light direction — light slows down when it moves from air to glass and speeds up when it moves from water to air.