A key thing that's missing from the drawInstanced samples is how to use vertexAttribDivisor. I've modified draw_instanced.html to use a per-instance color using vertexAttribDivisor. The position is still based on gl_InstanceID, so that's still being demonstrated as well.
A key thing that's missing from the drawInstanced samples is how to use vertexAttribDivisor. I've modified draw_instanced.html to use a per-instance color using vertexAttribDivisor. The position is still based on gl_InstanceID, so that's still being demonstrated as well.