toSprite()
Surface voxels of a model (or all of them), ready to stamp.
function toSprite(model: EntityModel, opts?: object): Sprite;Defined in: engine/src/dynamic.ts:34
Parameters
| Parameter | Type |
|---|---|
model | EntityModel |
opts? | { surfaceOnly?: boolean; } |
opts.surfaceOnly? | boolean |
Returns
swapsXZ()
Does this orientation swap the x and z extents?
trackRenderer()
Report the renderer's loading steps into a tracker: pass the result as createRenderer(gpu, scene, { onLoad: trackRenderer(load) }). Each start adds one item to its phase (opening a task if none is open) and each end ticks it with the variant as the label; the task ends when every started step...