A helper class for shaders.

Memberof

PIXI

Hierarchy (view full)

Constructors

  • Parameters

    • program: Program

      The program the shader will use.

    • Optional uniforms: Dict<any>

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

    Returns Shader

Properties

disposeRunner: Runner<any, any[]>
program: Program

Program that the shader uses.

uniformGroup: UniformGroup<Dict<any>>

Accessors

  • get uniforms(): Dict<any>
  • Shader uniform values, shortcut for uniformGroup.uniforms.

    Returns Dict<any>

Methods

  • Parameters

    Returns boolean

  • Returns void

  • A short hand function to create a shader based of a vertex and fragment shader.

    Parameters

    • Optional vertexSrc: string

      The source of the vertex shader.

    • Optional fragmentSrc: string

      The source of the fragment shader.

    • Optional uniforms: Dict<any>

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

    Returns Shader

    A shiny new PixiJS shader!

Generated using TypeDoc