When a light ray passes from a slow medium to a faster one: