Home▸Perception & Optical Illusions▸Desert Oasis Mirage: Heat-Refraction Ray Tracer (2D)

🏜️ Desert Oasis Mirage: Heat-Refraction Ray Tracer (2D)

Interactive 2D ray-traced inferior mirage: adjust ground and air temperature, eye height and the hot-air layer thickness to watch light rays bend through a real refractive-index gradient and produce the inverted mirror image of a desert oasis near the horizon.

Perception & Optical Illusions2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-desert-oasis-mirage ↗ Open standalone
⚙ Under the hood

Interactive 2D ray-traced inferior mirage: adjust ground and air temperature, eye height and the hot-air layer thickness to watch light rays bend through a real refractive-index gradient and produce the inverted mirror image of a desert oasis near the horizon.

OpticsRefractionMiragePerceptionRay Tracing

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)