A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE below:

ANGLE_instanced_arrays: vertexAttribDivisorANGLE() method - Web APIs

ANGLE_instanced_arrays: vertexAttribDivisorANGLE() method

Baseline Widely available

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
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 (undefined).

Examples
const ext = gl.getExtension("ANGLE_instanced_arrays");
ext.vertexAttribDivisorANGLE(0, 2);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4