Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created May 12, 2017 02:07
Show Gist options
  • Save vincentdesmares/9bb817dbc9a796cac7bd45c6f19bb80b to your computer and use it in GitHub Desktop.
Save vincentdesmares/9bb817dbc9a796cac7bd45c6f19bb80b to your computer and use it in GitHub Desktop.
function drawScene() {
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
requestAnimationFrame(drawScene);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment