webgl2

What are Vertex Arrays in OpenGL & WebGL2?

末鹿安然 提交于 2019-11-30 16:32:05
I've been working with WebGL1 for some time but now that I'm learning more about WebGL2, I'm confused what Vertex Array s actually do. For example, in the following example , I can remove all references to them (e.g. creation, binding, deletion) and the example continues to work. This has been explained elsewhere but you can consider both WebGL1 and WebGL2 to have a vertex array. It's just WebGL1 by default only has one where as WebGL2 you can create multiple vertex arrays (although 99.9% of all WebGL1 implementations support them as an extension) A Vertex Array is the collection of all

What are Vertex Arrays in OpenGL & WebGL2?

浪子不回头ぞ 提交于 2019-11-29 23:53:10
问题 I've been working with WebGL1 for some time but now that I'm learning more about WebGL2, I'm confused what Vertex Array s actually do. For example, in the following example, I can remove all references to them (e.g. creation, binding, deletion) and the example continues to work. 回答1: This has been explained elsewhere but you can consider both WebGL1 and WebGL2 to have a vertex array. It's just WebGL1 by default only has one where as WebGL2 you can create multiple vertex arrays (although 99.9%