Walk visible layers and concatenate their emitted DrawCommand arrays into
one flat list, ready to feed to WeaselRenderer.render(commands).
Visibility resolution order:
alwaysOn — always drawn, ignores visibility map.
Explicit entry in visibility map — overrides default.
layer.defaultVisible — falls back to true when absent.
Transform composition: world-space layers (the default; space unset or
'world') have their commands wrapped in a kind: 'group' with
viewToMat3(view) before they reach the renderer. Screen-space layers
(space: 'screen') pass through unchanged.
Walk visible layers and concatenate their emitted DrawCommand arrays into one flat list, ready to feed to
WeaselRenderer.render(commands).Visibility resolution order:
alwaysOn— always drawn, ignores visibility map.visibilitymap — overrides default.layer.defaultVisible— falls back totruewhen absent.Transform composition: world-space layers (the default;
spaceunset or'world') have their commands wrapped in akind: 'group'withviewToMat3(view)before they reach the renderer. Screen-space layers (space: 'screen') pass through unchanged.