Lets imagine a dog on a sandy beach running to a beach ball in the sea. What is the fastest possible path to the ball? Is it just a straight line?
Move the green point around to adjust the angle of incidence.
The blue point allows you to adjust the thickness of the blue medium.
The 2 sliders allow you to customise the refractive index of the environment and the medium that the light ray is passing through.