These docs are for Phaser 2.6.2 Phaser 3 docs can be found on GitHub pages.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. ComplexPrimitiveShader

new ComplexPrimitiveShader(gl)

Parameters
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 5)

Public Properties

fragmentSrc : Array

The fragment shader.

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 32)

gl :WebGLContext

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 19)

program : Object

The WebGL program.

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 25)

vertexSrc : Array

The vertex shader.

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 48)

Public Methods

destroy()

Destroys the shader.

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 110)

init()

Initialises the shader.

Source code: pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js (Line 79)