Anatomy of a WebGL App
- Create a canvas element.
- Obtain a drawing context for the canvas.
- Initialize the viewport.
- Create one or more buffers containing the data to be rendered (typically vertices).
- Create one or more matrices to define the transformation from vertex buffers to screen space.
- Create one or more shaders to implement the drawing algorithm.
- Initialize the shaders with Draw.