Class: PixiShader

PIXI. PixiShader

new PixiShader(gl)

Parameters:
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 11

Members

<static> defaultVertexSrc : String

The Default Vertex shader source.

Type:
  • String
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 475

dirty : Boolean

A dirty flag

Type:
  • Boolean
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 60

fragmentSrc : Array

The fragment shader.

Type:
  • Array
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 38

gl : WebGLContext

Type:
  • WebGLContext
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 24

program : Any

The WebGL program.

Type:
  • Any
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 31

textureCount : Number

A local texture counter for multi-texture shaders.

Type:
  • Number
Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 45

Methods

destroy()

Destroys the shader.

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 455

init()

Initialises the shader.

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 224

initSampler2D()

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

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 312

initUniforms()

Initialises the shader uniform values.

Uniforms are specified in the GLSL_ES Specification: http://www.khronos.org/registry/webgl/specs/latest/1.0/ http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 238

syncUniforms()

Updates the shader uniform values.

Source:
src/pixi/renderers/webgl/shaders/PixiShader.js line 388

phaser-ce@2.9.2 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-11-09 using Tomorrow.