Options
All
  • Public
  • Public/Protected
  • All
Menu

A helper class for shaders

memberof

PIXI

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Parameters

    Returns Shader

Properties

program

program: Program

uniformGroup

uniformGroup: UniformGroup

Accessors

uniforms

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

    readonly
    member

    {object}

    Returns Dict<any>

Methods

checkUniformExists

  • checkUniformExists(name: string, group: UniformGroup): boolean
  • Parameters

    Returns boolean

destroy

  • destroy(): void
  • Returns void

Static from

  • from(vertexSrc?: string, fragmentSrc?: string, uniforms?: Dict<any>): Shader
  • A short hand function to create a shader based of a vertex and fragment shader

    Parameters

    • Optional vertexSrc: string
    • Optional fragmentSrc: string
    • Optional uniforms: Dict<any>

    Returns Shader

    an shiny new Pixi shader!

Generated using TypeDoc