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 495

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 475

init()

Initialises the shader.

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

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 330

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 257

syncUniforms()

Updates the shader uniform values.

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

phaser-ce@2.20.1 is on GitHub and NPM

Documentation generated by JSDoc 3.6.11 on 2024-10-05 using Tomorrow.