A batch shader generator that could handle extra uniforms during initialization.

Param: vertexSrc

The vertex shader source

Param: fragTemplate

The fragment shader source template

Param: uniforms

Additional uniforms

Hierarchy

  • any
    • BatchShaderGenerator

Properties

Methods

Properties

#uniforms: object | ((maxTextures) => object)

Extra uniforms used to create the batch shader.

Type declaration

    • (maxTextures): object
    • Parameters

      • maxTextures: number

      Returns object

Methods

  • Parameters

    • maxTextures: any

    Returns any