I notice that the size
parameter for gl.vertexAttribPointer()
can be 1, 2, 3, or 4. What is the point of having 1 attribute per vertex? This also seems to be allowed in Vulkan.
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer#size