The phenomenon which occurs when light changes direction as it passes from one medium to…