Class: Program

PIXI.Program

Helper class to create a shader program.

new PIXI.Program (vertexSrc, fragmentSrc, name)

Name Type Attributes Description
vertexSrc string <optional>

The source of the vertex shader.

fragmentSrc string <optional>

The source of the fragment shader.

name string <optional>

Name for shader

Members

PIXI.Program.defaultFragmentSrc string static

The default fragment shader source

PIXI.Program.defaultVertexSrc string static

The default vertex shader source

attributeData { [key: string]: IAttributeData }

Assigned when a program is first bound to the shader system.

fragmentSrc string

The fragment shader.

uniformData { [key: string]: IUniformData }

Assigned when a program is first bound to the shader system.

vertexSrc string

The vertex shader.

Methods

PIXI.Program.from (vertexSrc, fragmentSrc, name) PIXI.Program static

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 Attributes Default Description
vertexSrc string <optional>

The source of the vertex shader.

fragmentSrc string <optional>

The source of the fragment shader.

name string <optional>
pixi-shader

Name for shader

Returns:
Type Description
PIXI.Program an shiny new Pixi shader!