WebGLSamples / WebGL2Samples

Short and easy to understand samples demonstrating WebGL 2 features
Other
1.01k stars 143 forks source link

Add vertexAttribDivisor to drawInstanced sample #143

Closed tsherif closed 7 years ago

tsherif commented 7 years ago

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.

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.