Created
July 14, 2016 06:46
-
-
Save ienaga/b8de4a2da5a906a6cc1a510e914d9edf to your computer and use it in GitHub Desktop.
WebGL(2D) - 入門編 - 7日目: 線の先端に矩形をたす(square) ref: http://qiita.com/ienaga/items/ed5cb207f70608f5e544
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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