Top view: ray trace through the crystal
Directions and brightness of the light that leaves

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

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.

Made with 🟠 Blender