five-on-it / apps/client/src/renderer/level-batches / buildBatches
Function: buildBatches()
buildBatches(
scene,root,level,which,movable):LevelBatches
Defined in: apps/client/src/renderer/level-batches.ts:238
Bakes the placements which says into batches under root: their triangles placed in the world, by cell and surface, every corner its own vertex with its face's normal and its colour (flat shading, as the pieces' own meshes have). movable says which may come loose.
Parameters
scene
Scene
root
TransformNode
level
which
(placement, index) => boolean
movable
(placement) => boolean