A change in medium affects light in that light must travel through something, and therefore can be bent and refracted just like a tangible object depending on the medium. An example would be when light enters the water of a pool, which gives the bent, "glistening" effect that we see.