Vertex buffers for one frame of candles, ready to be uploaded straight to
a WebGL ARRAY_BUFFER. Both arrays are tightly packed and parallel —
positions[2*v], positions[2*v+1] is vertex v's (x, y) in PIXELS, and
colors[3*v .. 3*v+2] is the same vertex's RGB in the 0..1 range.
vertexCount is the number of vertices (not floats); pass it directly to
gl.drawArrays(gl.TRIANGLES, 0, vertexCount).
Vertex buffers for one frame of candles, ready to be uploaded straight to a WebGL
ARRAY_BUFFER. Both arrays are tightly packed and parallel —positions[2*v], positions[2*v+1]is vertexv's (x, y) in PIXELS, andcolors[3*v .. 3*v+2]is the same vertex's RGB in the 0..1 range.vertexCountis the number of vertices (not floats); pass it directly togl.drawArrays(gl.TRIANGLES, 0, vertexCount).