stackgl / learning-webgl-01

Learning WebGL Lesson 1 converted from vanilla WebGL to use stack.gl.
http://stack.gl/learning-webgl-01/
28 stars 4 forks source link

use .pointer() #2

Closed mikolalysenko closed 9 years ago

mikolalysenko commented 9 years ago

Instead of manually calling gl.vertexAttribPointer(), we can use gl-shader-core's .pointer() function.

This is a bit shorter, and the defaults here are exactly what we need for this demo, so it seems more appropriate.

mattdesl commented 9 years ago

Seems good to me. :+1:

hughsk commented 9 years ago

Neat, didn't know about this one! More stuff like this is always good, thanks @mikolalysenko :)