Class: Program

PIXI. Program

new PIXI.Program(vertexSrc, fragmentSrc)

Name Type Description
vertexSrc string optional

The source of the vertex shader.

fragmentSrc string optional

The source of the fragment shader.

Extends

Members

static,constantPIXI.Program.defaultFragmentSrc

The default fragment shader source

static,constantPIXI.Program.defaultVertexSrc

The default vertex shader source

Methods

staticPIXI.Program.from(vertexSrc, fragmentSrc, uniforms){PIXI.Shader}

A short hand function to create a program based of a vertex and fragment shader this method will also check to see if there is a cached program.

Name Type Description
vertexSrc string optional

The source of the vertex shader.

fragmentSrc string optional

The source of the fragment shader.

uniforms object optional

Custom uniforms to use to augment the built-in ones.

Returns:
Type Description
PIXI.Shader an shiney new pixi shader.