gameforge - v0.1.12
    Preparing search index...

    Class Program

    Helper class to create a shader program.

    PIXI

    Index

    Constructors

    • Parameters

      • OptionalvertexSrc: string

        The source of the vertex shader.

      • OptionalfragmentSrc: string

        The source of the fragment shader.

      • Optionalname: string

        Name for shader

      • Optionalextra: IProgramExtraData

        Extra data for shader

      Returns Program

    Properties

    attributeData: { [key: string]: IAttributeData }

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

    fragmentSrc: string

    Source code for the fragment shader.

    glPrograms: { [key: number]: GLProgram }
    id: number
    nameCache: any
    syncUniforms: any
    uniformData: { [key: string]: IUniformData }

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

    vertexSrc: string

    Source code for the vertex shader.

    defaultFragmentPrecision: PRECISION

    Default specify float precision in fragment shader. iOS is best set at highp due to https://github.com/pixijs/pixijs/issues/3742

    PIXI.PRECISION.MEDIUM
    
    defaultVertexPrecision: PRECISION

    Default specify float precision in vertex shader.

    PIXI.PRECISION.HIGH
    

    Accessors

    • get defaultFragmentSrc(): string

      The default fragment shader source.

      Returns string

    • get defaultVertexSrc(): string

      The default vertex shader source.

      Returns string

    Methods

    • 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.

      Parameters

      • OptionalvertexSrc: string

        The source of the vertex shader.

      • OptionalfragmentSrc: string

        The source of the fragment shader.

      • Optionalname: string

        Name for shader

      Returns Program

      A shiny new PixiJS shader program!