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
contextThe rendering context of this shader program.
Readonly
fragmentThe fragment shader of this shader program.
Readonly
internalThe WebGL API interface of this shader program.
Readonly
transformThe mode this program uses when capturing transform feedback varyings.
Readonly
uniformsA map of uniform names to uniforms.
Readonly
varyingsA map of varying names to varyings. Only includes varyings that are used for transform feedback.
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.
The rendering context of the shader program.
The source code of the vertex shader.
The source code of the fragment shader.
A shader program.
Generated using TypeDoc
A vertex shader and a fragment shader which are used together to rasterize primitives.
See
Shaders