docsby gkjohnson
Drawing all tiles in one batched mesh
Data courtesy of NASA/JPL-Caltech
On this page

Methods

new BatchedTilesPlugin(
	options: {
		// The renderer used to generate a `WebGLArrayRenderTarget`.
		renderer: WebGLRenderer,

		// Initial number of instances in the batched mesh.
		instanceCount: number = 500,

		// Minimum vertex space to reserve per tile geometry added.
		vertexCount: number = 1000,

		// Minimum index space to reserve per tile geometry added.
		indexCount: number = 1000,

		// Fraction by which to grow the mesh when capacity is exceeded.
		expandPercent: number = 0.25,

		// Hard cap on instance count (clamped to GPU limits).
		maxInstanceCount: number = Infinity,

		// Free the original tile scene after batching. Set to `false` when used with `UnloadTilesPlugin`.
		discardOriginalContent: boolean = true,

		// Override width/height for the texture array; defaults to the first tile's texture size.
		textureSize: number | null = null,

		// Custom material for the batched mesh; defaults to the first tile's material type.
		material: Material | null = null
	}
)