[Solved] Why is there the need for the index argument in glEnableVertexAttribArray? [duplicate]
Because it’s possible to set a vertex attribute to a value that’s constant for all elements using glVertexAttrib. Yes, you could to that to the same effect with a uniform as well, but this kind of per-attribute selection of where a value comes from (sourced from array, or set constant) has been around for ages … Read more