Create a Program
The WTCGL Rendering context
The parameters for the Program
A map of attribute locations in use within the program shaders
A join of the found attributes. Used for addressing vertex array objects on the geometry.
The blend equation to use
The blend function to use
Face culling used.
The depth function to use when determinging the current pixel against the depth buffer
Whether to depth test objects in this program
Whether to write depth information
How to determine if a face is front-facing, whether it's points are drawn clockwise or counter-clockwise. Default is counter-clockwise.
The WTCGL rendering context object
The ID of the program. Simple auto-incremening. Used for identifying the program for setup.
The webgl program store
The texture unit. Used for addressing texture units in-program.
Whether to render transparency.
A map of uniform locations in use within the program shaders
The array uf uniforms for this program
Set the blend function based on source and destination parameters
the source blend function
The destination blend function
Optional
srcAlpha: numberthe source blend function for alpha blending
Optional
dstAlpha: numberthe destination blend function for alpha blending
The program class prvides the rendering setup, internal logic, and state for rendering an object.