interstellar-armada icon indicating copy to clipboard operation
interstellar-armada copied to clipboard

Use Vertex Array Objects (VAOs)

Open nkrisztian89 opened this issue 4 years ago • 0 comments

When the OES_vertex_array_object extension is available or WebGL2 is used, create a VAO for each shader and use it in bindVertexBuffers() instead of manually rebinding all the buffers. Even better, multiple shaders can use the same VAO as well if the attribute locations are ensured to be the same by using bindAttribLocation()

nkrisztian89 avatar Apr 14 '20 18:04 nkrisztian89