Creates a uniform.
The shader program that this uniform belongs to.
The index of this uniform.
Readonly
activeThe active information of this uniform.
Readonly
glThe rendering context of this variable.
Readonly
locationThe location of this uniform.
Readonly
programThe shader program that this variable belongs to.
Optional
sourceThe length of the given value. Calculated automatically if not set.
Optional
sourceThe offset from the start of the given value to pass to WebGL.
Protected
valueThe value of this uniform.
The name of this variable.
The size of this variable in memory in bytes.
The type of this variable.
The value of this uniform.
The setter method for this uniform if the value is an array.
Static
createCreates a uniform for the given variable type.
The shader program that this uniform belongs to.
The index of this uniform.
The texture unit to assign to this uniform if it ends up being a sampler.
Generated using TypeDoc
An unsigned integer 2D vector global variable in a WebGL shader program.