The entire code for this demo 🙂 (and yes, that's a JavaScript pixel shader there, fancy that...)