| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
vertexSrc | 
            
            string | 
                
                    <optional> | 
            
            
                
                 The source of the vertex shader.  | 
        |
fragmentSrc | 
            
            string | 
                
                    <optional> | 
            
            
                
                 The source of the fragment shader.  | 
        |
name | 
            
            string | 'pixi-shader' | 
                 Name for shader  | 
        |
extra | 
            
            IProgramExtraData | 
                 Extra data for shader  | 
        
Members
PIXI.Program.defaultFragmentPrecision PIXI.PRECISION static
Default specify float precision in fragment shader. iOS is best set at highp due to https://github.com/pixijs/pixijs/issues/3742
- Default Value:
 - PIXI.PRECISION.MEDIUM
 
The default fragment shader source.
PIXI.Program.defaultVertexPrecision PIXI.PRECISION static
Default specify float precision in vertex shader.
- Default Value:
 - PIXI.PRECISION.HIGH
 
The default vertex shader source.
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.
Methods
PIXI.Program.from (vertexSrc, fragmentSrc, name) PIXI.Program static
A 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.
| Name | Type | Attributes | Description | 
|---|---|---|---|
vertexSrc | 
            
            string | 
                
                    <optional> | 
            
            
            
                 The source of the vertex shader.  | 
        
fragmentSrc | 
            
            string | 
                
                    <optional> | 
            
            
            
                 The source of the fragment shader.  | 
        
name | 
            
            string | 
                
                    <optional> | 
            
            
            
                 Name for shader  | 
        
Returns:
| Type | Description | 
|---|---|
| PIXI.Program | A shiny new PixiJS shader program! |