-->

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 365

dirty :Boolean

A dirty flag

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

fragmentSrc :Array

The fragment shader.

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

gl :WebGLContext

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

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 48

Methods

destroy()

Destroys the shader.

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

init()

Initialises the shader.

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

initSampler2D()

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

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

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 - pixi/renderers/webgl/shaders/PixiShader.js, line 134

syncUniforms()

Updates the shader uniform values.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 283
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:21 GMT+0100 (BST) using the DocStrap template.