Optional
vertexSrc: stringThe source of the vertex shader.
Optional
fragmentSrc: stringThe source of the fragment shader.
Optional
name: stringName for shader
Optional
extra: IProgramExtraDataExtra data for shader
Assigned when a program is first bound to the shader system.
Source code for the fragment shader.
Assigned when a program is first bound to the shader system.
Source code for the vertex shader.
Static
defaultDefault specify float precision in fragment shader. iOS is best set at highp due to https://github.com/pixijs/pixijs/issues/3742
PIXI.PRECISION.MEDIUM
Static
defaultDefault specify float precision in vertex shader.
PIXI.PRECISION.HIGH
Static
defaultThe default fragment shader source.
Static
defaultThe default vertex shader source.
Static
fromA short hand function to create a program based of a vertex and fragment shader.
This method will also check to see if there is a cached program.
Optional
vertexSrc: stringThe source of the vertex shader.
Optional
fragmentSrc: stringThe source of the fragment shader.
Optional
name: stringName for shader
A shiny new PixiJS shader program!
Generated using TypeDoc
Helper class to create a shader program.
Memberof
PIXI