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 463

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

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 40

Methods

destroy()

Destroys the shader.

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

init()

Initialises the shader.

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

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 306

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 232

syncUniforms()

Updates the shader uniform values.

Source - pixi/renderers/webgl/shaders/PixiShader.js, line 382
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.3 on Mon Dec 05 2016 10:04:40 GMT+0000 (GMT Standard Time) using the DocStrap template.