gameforge - v0.1.12
    Preparing search index...

    Class Shader

    A helper class for shaders.

    PIXI

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • program: Program

        The program the shader will use.

      • Optionaluniforms: Dict<any>

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

      Returns Shader

    Properties

    disposeRunner: Runner
    program: Program

    Program that the shader uses.

    uniformGroup: UniformGroup

    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

      • OptionalvertexSrc: string

        The source of the vertex shader.

      • OptionalfragmentSrc: string

        The source of the fragment shader.

      • Optionaluniforms: Dict<any>

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

      Returns Shader

      A shiny new PixiJS shader!