You should check out MathBox http://acko.net/blog/making-mathbox/ (which is based on three.js and the author's shader library ShaderGraph.js). The MathBox uses his library for many of this interactive 3d Math examples found on his blog. http://acko.net/blog/