The speed of light is determined by the medium (material) through which the light is travelling. Light travels faster in a vacuum than it does in any other medium. Light changes speed as it passes ...
When a wave or light ray moves from one medium to another its speed changes. The direction of the ray may also change. This property of waves is called refraction and commonly occurs with light rays.