demo.js
function renderScene () {
    gl.clearColor(0, 0, 0, 1)
    gl.clear(gl.COLOR_BUFFER_BIT)
    gl.viewport(0, 0, shape[0], shape[1])
    shader.bind()
    shader.uniforms.iResolution = shape
    shader.uniforms.iGlobalTime = 0
    triangle(gl)
  }
function renderScene () {
    gl.clearColor(0, 0, 0, 1)
    gl.clear(gl.COLOR_BUFFER_BIT)
    gl.viewport(0, 0, shape[0], shape[1])
    shader.bind()
    shader.uniforms.iResolution = shape
    shader.uniforms.iGlobalTime = 0
    triangle(gl)
  }
function renderScene ( ) { gl . clearColor ( 0 , 0 , 0 , 1 ) gl . clear ( gl . COLOR_BUFFER_BIT ) gl . viewport ( 0 , 0 , shape [ 0 ] , shape [ 1 ] ) shader . bind ( ) shader . uniforms . iResolution = shape shader . uniforms . iGlobalTime = 0 triangle ( gl ) }
can be any type of render function
can be any type of render function