WebGL2RenderingContext: vertexAttribDivisor() 方法
注意:此功能在 Web Workers 中可用。
WebGL2RenderingContext.vertexAttribDivisor() 方法是 WebGL 2 API 的一部分,它会修改在使用 gl.drawArraysInstanced() 和 gl.drawElementsInstanced() 渲染多个实例化图元时,通用顶点属性前进的速率。
注意:在使用 WebGL 1 时,ANGLE_instanced_arrays 扩展也可以提供此方法。