Show HN: Spectral Lab – An optics simulator in WebGL

artepants.fun

3 points by kmewhort 3 days ago

I built a drag-and-drop optics lab where you can place mirrors, lenses and prisms to play around with real-time light ray physics. It uses standard ray-tracing with proper Snell's Law refraction and chromatic dispersion.

The blog post (which includes the app at the top) is the first in a series I have planned explaining this and other artful physics simulations.