Ray Sweep
A 2D spectral path tracer in Rust that renders light by sweeping rays across the plane and accumulating their paths.
Ray Sweep is a physically-based spectral renderer for light transport in two dimensions. It traces rays from the light sources and draws each ray's path into the frame buffer. Every bounce, refraction and reflection is visible as a stroke of light.
Each ray carries a spectral power distribution that can be used in shaders to implement physical based effects, for example, wavelength dependent refraction.

Tech
- Rust
- nalgebra — 2D geometry and linear algebra
- ndarray + rayon — parallel image buffers
- image / imageproc — rasterisation (Bresenham line drawing)
- CIE colour-matching functions — spectral-to-sRGB colour science