the current WebGL renderer session
additional settings to initialize this compositors
an array of attributes definition
an array of attributes definition
an array of vertex attribute properties
the shader currently used by this compositor
the default shader created by this compositor
primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGLES)
the size of a single vertex in bytes (will automatically be calculated as attributes definitions are added)
the vertex data buffer used by this compositor
the size of a single vertex in floats (will automatically be calculated as attributes definitions are added)
add vertex attribute property definition to the compositor
name of the attribute in the vertex shader
number of components per vertex attribute. Must be 1, 2, 3, or 4.
data type of each component in the array
whether integer data values should be normalized into a certain range when being cast to a float
offset in bytes of the first component in the vertex attribute array
Draw an array of vertices
primitive type to render (gl.POINTS, gl.LINE_STRIP, gl.LINE_LOOP, gl.LINES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN, gl.TRIANGLES)
an array of vertices
Optional
vertexCount: number = verts.lengthamount of points defined in the points array
set/change the current projection matrix
the new projection matrix
Select the shader to use for compositing
a reference to a GLShader instance
A WebGL Compositor object. This class handles all of the WebGL state
Pushes texture regions or shape geometry into WebGL buffers, automatically flushes to GPU