Refraction & Total Internal Reflection
Interactive ray model
Drag the angle and refractive-index sliders.
Total internal reflection appears automatically.