| Name | Type | Description |
|---|---|---|
program |
PIXI.Program |
optional
The program the shader will use. |
uniforms |
object |
optional
Custom uniforms to use to augment the built-in ones. |
Extends
Methods
-
PIXI.Shader.from (vertexSrc, fragmentSrc, uniforms)PIXI.Shader static
-
A short hand function to create a shader based of a vertex and fragment shader
Name Type Description vertexSrcstring optional The source of the vertex shader.
fragmentSrcstring optional The source of the fragment shader.
uniformsobject optional Custom uniforms to use to augment the built-in ones.
Returns:
Type Description PIXI.Shader an shiney new pixi shader.