I am trying to do instancing in WebGL 2. I want to use the built-in variable gl_InstanceID
to index into a uniform float array.
I get the following error:
glDrawElementsInstancedANGLE: attempt to draw with all attributes having non-zero divisors
Is the only instancing allowed in WebGL 2 instancing with vertex attributes (instanced arrays)?
Also, is the spec the only definitive place to find out about these capabilities?