Creates a shader program.
The vertex shader.
The fragment shader.
The names of the varyings which should be tracked for transform feedback.
The mode to use when capturing transform feedback varyings.
Whether this program is allowed to draw with depth. Used for optimization only.
Whether this program is allowed to draw transparent objects. Used for optimization only.
Readonly
attributesA map of attribute names to attributes.
Readonly
fragmentThe fragment shader of this shader program.
Readonly
glThe rendering context of this shader program.
Readonly
programThe WebGL API interface of this shader program.
Readonly
transformThe mode this program uses when capturing transform feedback varyings.
Readonly
transformA map of transform feedback varying names to varyings.
Readonly
uniformsA map of uniform names to uniforms.
Readonly
vertexThe vertex shader of this shader program.
Whether this program is flagged for deletion.
The information log for this shader program.
Whether the last link operation was successful.
Whether the last validation operation was successful.
Static
fromCreates a shader program from source code.
A shader program.
The rendering context of the shader program.
The source code of the vertex shader.
The source code of the fragment shader.
Generated using TypeDoc
A vertex shader and a fragment shader which are used together to rasterize primitives.