Here I introduce some basic mouse events (mouse down, move and up) to rotate a 3D model.
Since WebGL does not support some matrix operations, I am using a 3rd party library for Matrix calculations that can be found here glMatrix.js. In this first example you will also see how to setup vertex and fragment shaders, how to color, and a bit more.You will be able to see the code on your browser by going to "View Code" menu.
You need an HTML5/WebGL compatible Browser (IE does not work) Check WebGL.