#Snell's law
How much light bends crossing from one material into another: n₁ sin θ₁ = n₂ sin θ₂, each angle measured from the surface's normal and each n that side's index of refraction. Going from air (1) into water (1.333) a ray bends toward the normal: sunlight 25° from straight down goes on 18.5° from it. Metal's refract(d, n, n₁ / n₂) applies it to a direction.
1 shader
