When a wave changes direction due to changing speeds as it moves through different materials