Enabling the Attribute

Finally, we need to activate the vertex shader attribute. Following our example, we just need to add gl.enableVertexAttribArray(positionAttributeLocation);.

The following diagram summarizes the mapping procedure: