new PixiFastShader(gl)
Parameters
Name | Type | Description |
---|---|---|
gl |
WebGLContext | the current WebGL drawing context |
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 5)
Public Properties
-
fragmentSrc : Array
-
The fragment shader.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 32)
-
gl :WebGLContext
-
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 19)
-
program : Object
-
The WebGL program.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 25)
-
textureCount : number
-
A local texture counter for multi-texture shaders.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 82)
-
vertexSrc : Array
-
The vertex shader.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 47)
Public Methods
-
destroy()
-
Destroys the shader.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 143)
-
init()
-
Initialises the shader.
- Source code: pixi/renderers/webgl/shaders/PixiFastShader.js (Line 94)