ANGLE_instanced_arrays.vertexAttribDivisorANGLE()
The ANGLE_instanced_arrays.vertexAttribDivisorANGLE() method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE()
and ext.drawElementsInstancedANGLE()
.
Note: When using WebGL2
, this method is available as gl.vertexAttribDivisor()
by default.
Syntax
void ext.vertexAttribDivisorANGLE(index, divisor);
Parameters
Return value
None.
Examples
var ext = gl.getExtension('ANGLE_instanced_arrays');
ext.vertexAttribDivisorANGLE(0, 2);
Specifications
Specification |
---|
WebGL ANGLE_instanced_arrays Khronos Ratified Extension Specification |
Browser compatibility
BCD tables only load in the browser