Vao | MapGL | 2GIS Documentation

Vao

Обертка над vertex array object. https://developer.mozilla.org/ru/docs/Web/API/OES_vertex_array_object

Для использования необходимо включить расширение renderer.addExtension('OES_vertex_array_object')

new constructor(shaderProgram, attributes, indicesBuffer)
Parameters
shaderProgram
ShaderProgram<>

Шейдерная программа, каждый Vao привязан к одной шейдерной программе.

attributes
VaoAttributes

Key-value объект содержащий данные атрибутов.

indicesBuffer
nullBuffer<>

Буффер индексов.

Returns
Vao<>
Methods