new PIXI.ShaderSystem(renderer)
| Name | Type | Description |
|---|---|---|
renderer |
PIXI.WebGLRenderer |
A reference to the current renderer |
Members
-
glWebGLRenderingContext
-
The current WebGL rendering context
Methods
-
bind(shader, dontSync){PIXI.glCore.GLShader}
-
Changes the current shader to the one given in parameter
Name Type Description shaderPIXI.Shader the new shader
dontSyncboolean false if the shader should automatically sync its uniforms.
Returns:
Type Description PIXI.glCore.GLShader the glShader that belongs to the shader. -
Destroys this System and removes all its textures
-
Returns the underlying GLShade rof the currently bound shader. This can be handy for when you to have a little more control over the setting of your uniforms.
Returns:
Type Description PIXI.glCore.Shader the glShader for the currently bound Shader for this context -
setUniforms(uniforms)
-
Uploads the uniforms values to the currently bound shader.
Name Type Description uniformsobject the uniforms valiues that be applied to the current shader