Although our example is enough to introduce most of the aspects of using WebGL in 3D, we need something slightly more realistic to demonstrate the possibilities. The usual first example is a 3D cube.
At some point in working with WebGL you have to define the matrices used in the shader. In general, you have to make connections between all of the variables used in the shaders and objects in the ...