WebGL - Dynamic attributes (Drawing Shapes #2)

In this episode, I discuss how to have dynamically linked attributes in WebGL / JavaScript. We proceed to use these to draw shapes again, but this time with color attribute (and position) dynamically set.
Concepts:
  • dynamically assigning attributes, uniforms, and varyings to JS objects, in order to dynamically bind them

Resources:
  • https://github.com/davidwparker/programmingtil-webgl/tree/master/0029-drawing-shapes-2
© programmingtil.com