A batch renderer with a customizable data transfer function to packed geometries.

Hierarchy

  • any
    • BatchRenderer

Properties

_packInterleavedGeometry: Function

The PackInterleavedGeometry function provided by the sampler.

_preRenderBatch: ((batchRenderer) => void)

The update function provided by the sampler and that is called just before a flush.

Type declaration

    • (batchRenderer): void
    • Parameters

      Returns void

shaderGeneratorClass: typeof BatchShaderGenerator = BatchShaderGenerator

The batch shader generator class.

defaultUniforms: object | ((maxTextures) => object) = {}

The default uniform values for the batch shader.

Type declaration

    • (maxTextures): object
    • Parameters

      • maxTextures: number

      Returns object

Accessors

  • get uniforms(): object
  • Get the uniforms bound to this abstract batch renderer.

    Returns object

  • get reservedTextureUnits(): number
  • Number of reserved texture units reserved by the batch shader that cannot be used by the batch renderer.

    Returns number

  • set reservedTextureUnits(val): void
  • Protected

    The number of reserved texture units that the shader generator should not use (maximum 4).

    Parameters

    • val: number

    Returns void

Methods

  • Parameters

    • __namedParameters: {
          vertex: any;
          fragment: any;
          uniforms: any;
      } = {}
      • vertex: any
      • fragment: any
      • uniforms: any

    Returns void

  • This override allows to allocate a given number of texture units reserved for a custom batched shader. These reserved texture units won't be used to batch textures for PIXI.Sprite or SpriteMesh.

    Returns void

  • Returns void

    Inherit Doc

  • Returns void

  • Parameters

    • element: any
    • attributeBuffer: any
    • indexBuffer: any
    • aIndex: any
    • iIndex: any

    Returns void

  • Verify if a PIXI plugin exists. Check by name.

    Parameters

    • name: string

      The name of the pixi plugin to check.

    Returns boolean

    True if the plugin exists, false otherwise.