PIXI.PixiShader

new PixiShader(gl)

Parameters:

Name

Type

Description

gl

WebGLContext

the current WebGL drawing context

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 6

Members

defaultVertexSrc:String

The Default Vertex shader source.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 469

dirty:Boolean

A dirty flag

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 55

fragmentSrc:Array

The fragment shader.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 33

program:Object

The WebGL program.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 26

textureCount:Number

A local texture counter for multi-texture shaders.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 40

destroy()

Destroys the shader.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 455

init()

Initialises the shader.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 224

initSampler2D()

Initialises a Sampler2D uniform (which may only be available later onafter initUniforms once the texture has loaded)

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 312

syncUniforms()

Updates the shader uniform values.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 388