Creates a shader
The 3D context
The vertex shader source code
The fragment shader source code
The fragment shader source code
The 3D context
The WebGL program consisting of the vertex shader and the fragment shader
The vertex shader source code
Returns the attribute location of a variable in the shader program
The name of the variable
The variable's location
Loads a shader part from its script DOM node and compiles it
The 3D context
The source code
The resulting shader part
Returns an object that can be used to set an int on the GPU
The name of the uniform to set
The resulting object
Returns an object that can be used to set an int on the GPU
The name of the uniform to set
The resulting object
Returns an object that can be used to set a matrix on the GPU
The name of the uniform to set
The resulting object
Returns an object that can be used to set a vector on the GPU
The name of the uniform to set
The resulting object
Returns an object that can be used to set a vector on the GPU
The name of the uniform to set
The resulting object
Creates and compiles a Shader from the given sources,
Use this shader program for the next WebGL calls
Generated using TypeDoc
Class to assemble a Shader to use with WebGL