Skip to content

CompositePart

Defined in: sdk/src/render/compositeBatch.ts:83

One part, as the planner sees it: its draw state, its mesh and where it stands in the root’s space.

center: readonly [number, number, number]

Defined in: sdk/src/render/compositeBatch.ts:92

Centre of its mesh’s bounds in the root’s space: the cell it is merged in.


entity: number

Defined in: sdk/src/render/compositeBatch.ts:84


key: string

Defined in: sdk/src/render/compositeBatch.ts:86

Draw state plus vertex layout (staticBatchKey): parts that may share a draw.


local: Mat4

Defined in: sdk/src/render/compositeBatch.ts:89


mesh: number

Defined in: sdk/src/render/compositeBatch.ts:88

The mesh handle: parts that may share an instanced set share this AND the key.


vertices: number

Defined in: sdk/src/render/compositeBatch.ts:90