setupVBO4FBO method

void setupVBO4FBO()

Implementation

void setupVBO4FBO() {
  double w = 1.0;
  double h = 1.0;

  Float32Array vertices = Float32Array.fromList([
    -w,-h,0,0,0,
    w,-h,0,1,0,
    -w,h,0,0,1,
    w,h,0,1,1,
  ]);

  vertexBuffer4FBO = _gl.createBuffer();
  _gl.bindBuffer(WebGL.ARRAY_BUFFER, vertexBuffer4FBO);
  _gl.bufferData(WebGL.ARRAY_BUFFER, vertices, WebGL.STATIC_DRAW);
  vertices.dispose();
}