The renderer this System works for.
Protected
glThe current WebGL rendering context.
Protected
contextProtected
createWill create a function that uploads a uniform buffer using the STD140 standard. The upload function will then be cached for future calls If a group is manually managed, then a simple upload function is generated
the uniform buffer group to sync
the gl program to attach the uniform bindings to
the name of the uniform buffer (must exist on the shader)
Destroys this System and removes all its textures.
Disposes shader. If disposing one equals with current shader, set current as null.
Shader object
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.
The glProgram for the currently bound Shader for this context
Resets ShaderSystem state, does not affect WebGL state.
Uploads the uniforms values to the currently bound shader.
the uniforms values that be applied to the current shader
Syncs uniform buffers
the uniform buffer group to sync
Optional
name: stringthe name of the uniform buffer
Syncs uniforms on the group
the uniform group to sync
Optional
syncData: anythis is data that is passed to the sync function and any nested sync functions
Overrideable by the @pixi/unsafe-eval package to use static syncUniforms instead.
System plugin to the renderer to manage shaders.
Memberof
PIXI