WebGL Beginner's Guide - Chapter 2

Rendering a Square

WebGL uses buffers to store and process vertex and index data. The mechanism is the same whether we are rendering a simple object like a square or a racing car as we will see later on.

Your browser does not support the HTML5 canvas element.