Refraction (Snell’s Law) and Total Internal Reflection
Light changes direction entering another material, according to the ratio of refractive indices n.
Textbook model
Snell’s law for the direction and the Fresnel equations for how much light reflects.
Simplified game model
shaders usually estimate reflectance with the cheap Schlick approximation. The simulator compares the two values.
The textbook model is also an idealization with simplified conditions; real phenomena have more factors.
Simulator
The refractive index tells how many times slower light is than in a vacuum: air about 1.00, water about 1.33, glass about 1.5 (it depends on the type and the colour of light).
Going from a higher to a lower index, beyond the critical angle all light is reflected (total internal reflection). Optical fibres use this.
How games use it
Water and glass shaders, prisms and light puzzles.
More laws in this category
Sources
Checked: 2026-11-29