- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 30字
- 2021-06-10 19:42:56
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: