Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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

index
A GLuint specifying the index of the generic vertex attributes.
divisor
A GLuint specifying the number of instances that will pass between updates of the generic attribute.

Return value

None.

Examples

var ext = gl.getExtension("ANGLE_instanced_arrays");
ext.vertexAttribDivisorANGLE(0, 2);

Specifications

Specification Status Comment
ANGLE_instanced_arrays
The definition of 'ANGLE_instanced_arrays' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 33 (33) 11 ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ? ?

See also

Document Tags and Contributors

 Contributors to this page: fscholz
 Last updated by: fscholz,