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:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.185.147