





Working on a 2D optics simulator using WebGL. Physics looks pretty beautiful
It's a 2D geometric optics simulator, so no diffraction or interference. Every ray carries a single wavelength, glass dispersion comes from a Cauchy fit (n_d and Abbe number), and reflection vs. refraction at each surface is picked randomly using the exact Fresnel equations. The picture builds up by Monte Carlo averaging of millions of rays, and colors come from the CIE 1931 curves.
Happy to answer questions!