ParentFull threadbj-rn·Spectral.js might also be interesting. It comes with a GLSL implementation of Kubelka-Munk and is MIT.https://github.com/rvanwijnen/spectral.jsView on HN