WebGL : Rotating Cube
This example shows how a 3D shape can be drawn and rotated in WebGL. In the working example belwo you can see a rotating cube with different colors on each face. Open the Javascript tab and the see the code with inline explanation.