Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use Vertex Array Objects (VAOs) #393

Open
nkrisztian89 opened this issue Apr 14, 2020 · 0 comments
Open

Use Vertex Array Objects (VAOs) #393

nkrisztian89 opened this issue Apr 14, 2020 · 0 comments
Assignees
Milestone

Comments

@nkrisztian89
Copy link
Owner

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant