Attempt to model refraction.  I suspect it's still a bit off.