I'm teaching myself WebGL. Don't expect any clean code.