This applet represents what we know about reflection and refraction, according to Snell's Law. You can change the indices of refraction of the two media, and you can drag the incoming ray to any angle between 0 and 90 degrees.