gameforge - v0.1.12
    Preparing search index...

    Class BatchShaderGenerator

    Helper that generates batching multi-texture shader. Use it with your new BatchRenderer

    PIXI

    Index

    Constructors

    • Parameters

      • vertexSrc: string

        Vertex shader

      • fragTemplate: string

        Fragment shader template

      Returns BatchShaderGenerator

    Properties

    defaultGroupCache: { [key: number]: UniformGroup<Dict<any>> }
    fragTemplate: string

    Reference to the fragment shader template. Must contain "%count%" and "%forloop%".

    programCache: { [key: number]: Program }
    vertexSrc: string

    Reference to the vertex shader source.

    Methods

    • Parameters

      • maxTextures: number

      Returns string

    • Parameters

      • maxTextures: number

      Returns Shader