Imagine that a wave passes from a deeper zone to another shallow zone, or vice versa. There will be refraction. If you want to know what laws govern refraction click here.

The visual in context

Licencia de Creative Commons
Except where otherwise noted, this work is licensed under a Creative Common License