The WebGL2RenderingContext.vertexAttribDivisor()
method of the WebGL 2 API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with gl.drawArraysInstanced()
and gl.drawElementsInstanced()
.
Note: When using WebGL 1, the ANGLE_instanced_arrays
extension can provide this method, too.