Consolidate data into a single WebGL vertex array

InstructorKeith Peters

Share this video with your friends

Send Tweet

In this lesson, we look at how to consolidate different data, such as position and color, into a single vertex array. This becomes more important as we keep adding attributes such as per-vertex data for lighting and textures. We will update the stride value in the vertexAttribPointer method to accommodate these changes.