As the beam enters the medium