MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

ANGLE_instanced_arrays

この翻訳は不完全です。英語から この記事を翻訳 してください。

ANGLE_instanced_arrays この拡張機能はWebGL APIの一部です。 同じ頂点データ、プリミティブカウント、およびタイプを共有する場合は、同じオブジェクトまたは同様のオブジェクトのグループを複数回描画できます。

WebGLRenderingContext.getExtension() メソッドを使用してWebGL拡張を利用できます. 詳細については、WebGL tutorialUsing Extensionsも参照してください。

Availability: This extension is only available to WebGL1 contexts. In WebGL2, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without the "ANGLE" suffix.

Despite the name "ANGLE", this extension works on any device if the hardware supports it and not just on Windows when using the ANGLE library. "ANGLE" just indicates that this extension has been written by the ANGLE library authors.

定数

この拡張は新た定数を公開します。この定数はgl.getVertexAttrib()メソッドで使用できます:

ext.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE
Returns a GLint describing the frequency divisor used for instanced rendering when used in the gl.getVertexAttrib() as the pname parameter.

Methods

This extension exposes three new methods.

ext.drawArraysInstancedANGLE()

Behaves identically to gl.drawArrays() except that multiple instances of the range of elements are executed, and the instance advances for each iteration.

ext.drawElementsInstancedANGLE()

Behaves identically to gl.drawElements() except that multiple instances of the set of elements are executed and the instance advances between each set.

ext.vertexAttribDivisorANGLE()

Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().

Examples

Enabling the extension:

var ext = gl.getExtension('ANGLE_instanced_arrays');

Specifications

Specification Status Comment
ANGLE_instanced_arrays
ANGLE_instanced_arrays の定義
勧告 Initial definition.

Browser compatibility

機能 Chrome Edge Firefox Internet Explorer Opera Safari Servo
基本サポート?(有り)33.011???
機能 Android Chrome for Android Edge Mobile Firefox for Android IE Mobile Opera Mobile Safari Mobile
基本サポート??(有り)????

See also

ドキュメントのタグと貢献者

 このページの貢献者: frankymacster
 最終更新者: frankymacster,