A simple spectral raytracer. The structure is mostly based on the great book series Ray Tracind in One Weekend. I extended on this by using spectral rays instead for some nice caustic effects.
Conversion from RGB textures to spectral colors is done by estimating the distribution as described in An RGB to Spectrum Conversion for Reflectances.