Construct a new shader program. The shader can be used immediately, but will not have an effect on rendering until it's fully loaded.
Options for creating the new shader program.
The default shader program provided by the engine.
Get a new Shader
using the same program as this one but with an independent set of uniform
variables.
Set the value of a bool
uniform.
Name of the uniform variable in the GLSL source text.
Value to set: either true
or false
.
Set the values of a vec4
uniform from the components of a Color
(RGBA).
Name of a uniform
variable in the GLSL source text.
A Color
object whose RGBA values will be used.
Set the value of a float
(floating point) uniform.
Name of a uniform
variable in the GLSL source text.
Value to set.
Set the value of an int
(integer) uniform.
Name of a uniform
variable in the GLSL source text.
Value to set. Anything after the decimal point will be ignored.
Set the values of a mat4
(4x4 matrix) uniform from the matrix cells of a Transform
.
Name of the uniform
in the GLSL source text.
A Transform
object whose 4x4 matrix cells will be used.
Load the given shader files in the background and construct a new shader program from them.
Options for creating the new shader program.
A promise for the new Shader
object.
Generated using TypeDoc
Represents a shader program used to control low-level graphics rendering.