When light travels through a medium like, for example, a glass plate,
it appears to slow down. The apparent "slower speed" is the result of the superposition of two radiative electric fields:
The incoming light, traveling at speed
c, and the light re-radiated by the atoms in the medium (oscillating charges driven by the incoming light) in the forward direction, traveling at speed
c, too.
The superposition shifts the phase of the radiation in the air downstream of the glass plate in the same way that would occur if the light were to go slower than
c in the glass plate. If one wants to understand the essential aspects of the phenomena, I recommend to read chapter 31 “The Origin of the Refractive Index” in “The Feynman Lectures on Physics, Volume I". (
http://www.feynmanlectures.caltech.edu/I_31.html).