Underwater Snell's Window: Side Section and Fisheye View (2D)
A flat side section through the same pool: rays from a distant bird and the Sun bending into the water, the yellow window cone, a totally reflected ray, and the equidistant fisheye view of the sky from below. Same equations and numerical checks as the 3D pool.
Look up from under water and the whole sky, from the zenith to the horizon, is squeezed into a bright circle about 97 degrees wide, ringed by a mirror. Put an observer fish at a chosen depth in water of a chosen refractive index and watch a distant bird and the Sun refract through the surface by Snell's law, the window cone grow with depth, a ray beyond the critical angle reflect totally, and the Fresnel transmission fade toward the horizon. Includes a live fisheye picture of what the fish sees. A Blender-built pool scene with independent numerical checks.
A flat side section through the same pool: rays from a distant bird and the Sun bending into the water, the yellow window cone, a totally reflected ray, and the equidistant fisheye view of the sky from below. Same equations and numerical checks as the 3D pool.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install