Home▸Optics & Light▸Crystal Cave Prism (2D): Ray Trace of White Light through a Hexagonal Crystal

Crystal Cave Prism (2D): Ray Trace of White Light through a Hexagonal Crystal

A top view of the same crystal cave: the exact ray trace of white light through the hexagon with Blender-rendered rock, crystal, lantern and amethyst sprites, plus a strip showing the direction and brightness of every colour that leaves. Same shared model and numerical checks as the 3D version.

Optics & Light2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Crystal Cave Prism (2D): Ray Trace of White Light through a Hexagonal Crystal ↗ Open standalone

A lantern sends a white beam into a spinning hexagonal crystal in a cave. Every one of seven colours is ray-traced through the crystal with Snell refraction, Fresnel reflection and total internal reflection, so you see the rainbow fan, the weak internal bounces and the coloured light spots on the cave wall. Switch the material between quartz, BK7 glass, ice, fluorite and diamond, move the beam, freeze the crystal at the minimum deviation angle and compare it with the prism formula. Ice gives the 22 degree halo, diamond traps its light. Blender-made crystal cave with independent numerical checks built in.

⚙ Under the hood

A top view of the same crystal cave: the exact ray trace of white light through the hexagon with Blender-rendered rock, crystal, lantern and amethyst sprites, plus a strip showing the direction and brightness of every colour that leaves. Same shared model and numerical checks as the 3D version.

RefractionDispersionTotal Internal ReflectionPrismFresnel EquationsIce HaloCrystal Optics

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

What did you find?

Add reproduction steps (optional)