glVertexAttribDivisor
glVertexAttribDivisor is a function in the OpenGL API used for instanced rendering. It allows developers to specify how much a vertex attribute should be incremented for each instance drawn. When instanced rendering is enabled, multiple copies of the same geometry are drawn in a single draw call. Vertex attributes are typically per-vertex data, such as position or color. However, instancing requires certain attributes to vary per instance rather than per vertex.
The glVertexAttribDivisor function takes two arguments: the index of the vertex attribute and the divisor. The
By setting different divisors for different vertex attributes, you can control which aspects of the geometry