Its called the Fresnell Effect, you see it on a hell of a lot of materials and it takes quite a bit of calculation.