Skip to content

Instantly share code, notes, and snippets.

@ienaga
Created July 14, 2016 06:46
Show Gist options
  • Save ienaga/b8de4a2da5a906a6cc1a510e914d9edf to your computer and use it in GitHub Desktop.
Save ienaga/b8de4a2da5a906a6cc1a510e914d9edf to your computer and use it in GitHub Desktop.
WebGL(2D) - 入門編 - 7日目: 線の先端に矩形をたす(square) ref: http://qiita.com/ienaga/items/ed5cb207f70608f5e544
var vertex = gl.getAttribLocation(program, "vertex");
gl.enableVertexAttribArray(vertex);
gl.vertexAttribPointer(vertex, 2, gl.FLOAT, false, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment