Flat Surface Shader for rendering lit triangles to a number of contexts written in JavaScript including WebGL, Canvas 2D and SVG.