Class BatchShaderGenerator

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

Memberof

PIXI

Constructors

  • Parameters

    • vertexSrc: string

      Vertex shader

    • fragTemplate: string

      Fragment shader template

    Returns BatchShaderGenerator

Properties

defaultGroupCache: {
    [key: number]: UniformGroup;
}

Type declaration

fragTemplate: string

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

programCache: {
    [key: number]: Program;
}

Type declaration

vertexSrc: string

Reference to the vertex shader source.

Methods

  • Parameters

    • maxTextures: number

    Returns string

  • Parameters

    • maxTextures: number

    Returns Shader

Generated using TypeDoc