#refraction
Light bending as it passes from one material into another, because it goes at a different speed in each. The index of refraction says how much slower: 1 for air, about 1.5 for glass, 2.4 for diamond. In a shader, refract(d, n, ratio) bends a ray by the ratio of the two indices, and gives nothing back when the ray meets the surface too slantwise to leave (total internal reflection).
4 shaders

· Light & Materials
Swimming Pool
Caustics: light bent by a moving surface, gathered on the floor

· SwiftUI Effects
Heat Haze
A SwiftUI distortion effect, from Metal to an app

· Light & Materials
Rain on Glass
Refraction through drops on a window, a blurred world behind

· Light & Materials
Glass Orb
Refraction, reflection, Fresnel