Copy of Snell's Law--Air to More Dense Material
The black horizontal line is the boundary between air and a denser medium. Light strikes the surface at a given angle of incidence and then is refracted in the denser material. You can change the angle of incidence by moving the blue dot to the left on the incident ray. You can also change the index of refraction of the denser material.