Added refraction direction calculation

Using Snell's law.