Bending of light – calculating refraction for surfaces such as water