You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just beginning with webgl, so I'm not sure whats going on, either VAOs aren't being used correctly, the newest browsers are filling in some missing parts, or the tutorial examples are written in a way that is completely uninstructive as to the use of vaos.
The text was updated successfully, but these errors were encountered:
The reason you can take the lines out is because there is only one VAO in those samples. As soon as you have 2 VAOs you'd have to put the lines back. The samples are the way they are to show the normal case (more than 1 VAO) not the exceptional case (just 1 VAO)
Even though for such a small sample fillStyle only needs to be set once.
It's the same with VAOs. Because there happens to be just one you could only bind once. But that's not the normal case. Just like drawing just one thing in one color is not the normal case
I've already come across two examples where I can completely comment out the lines with vao and not change the running of the program at all.
https://webgl2fundamentals.org/webgl/lessons/webgl-fundamentals.html
https://webgl2fundamentals.org/webgl/lessons/webgl-2d-translation.html
I'm just beginning with webgl, so I'm not sure whats going on, either VAOs aren't being used correctly, the newest browsers are filling in some missing parts, or the tutorial examples are written in a way that is completely uninstructive as to the use of vaos.
The text was updated successfully, but these errors were encountered: