voxolith

~~makePlacementWorker()~~

Bake static placements on a worker, main-thread side: makeSceneWorker under its older name, typed as the bake-only PlacementWorker. Give it to makeInstanceLayer(target, { placement }), which bakes there as before; to encode models on it as well, use makeSceneWorker and the layer's worker option.

function makePlacementWorker(opts: PlacementWorkerOptions): PlacementWorker;

Defined in: engine/src/worker/placement.ts:51

Parameters

ParameterType
optsPlacementWorkerOptions

Returns

PlacementWorker

Deprecated

Use makeSceneWorker.

On this page