Class: PrimitiveShader

PIXI. PrimitiveShader

new PrimitiveShader(gl)

Parameters:
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 10

Members

fragmentSrc : Array

The fragment shader.

Type:
  • Array
Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 37

gl : WebGLContext

Type:
  • WebGLContext
Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 23

program : Any

The WebGL program.

Type:
  • Any
Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 30

vertexSrc : Array

The vertex shader.

Type:
  • Array
Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 51

Methods

destroy()

Destroys the shader.

Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 105

init()

Initialises the shader.

Source:
src/pixi/renderers/webgl/shaders/PrimitiveShader.js line 75

phaser-ce@2.20.1 is on GitHub and NPM

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