EncodeSource
A model to encode, as it travels to the worker: ModelSource without the sparse brick map, whose bricks come ahead of it in chunk messages (a map of hundreds of thousands of small arrays is slow to structured-clone; packed chunks transfer).
Defined in: engine/src/worker/scene.ts:45
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
data? | Uint8Array<ArrayBufferLike> | Dense role values (ModelSource.data). | engine/src/worker/scene.ts:49 |
joints? | readonly object[] | ModelSource.joints. | engine/src/worker/scene.ts:55 |
partBoxes? | Int32Array<ArrayBufferLike> | ModelSource.partBoxes. | engine/src/worker/scene.ts:57 |
parts? | Uint8Array<ArrayBufferLike> | ModelSource.parts. | engine/src/worker/scene.ts:53 |
size | object | Extent in voxels. | engine/src/worker/scene.ts:47 |
size.x | number | - | engine/src/worker/scene.ts:47 |
size.y | number | - | engine/src/worker/scene.ts:47 |
size.z | number | - | engine/src/worker/scene.ts:47 |
sparse? | boolean | The model is sparse: its bricks arrived in chunk messages with the same id. | engine/src/worker/scene.ts:51 |