Skip to content

AssetDimension

AssetDimension = "2d" | "3d"

Defined in: packages/declarative-hex-worlds/src/asset-source/source.ts:30

The dimensionality of a rendered asset — a first-class concept so a backend (three for 3D/2.5D, a future Pixi backend for 2D) knows how to place, sort, and orient it. A '3d' asset is a volumetric mesh; a '2d' asset is a planar sprite whose depth is a z-order, not a world Y. <Model> is 3D-first, <Sprite> 2D-first, and both can coexist on one board (2.5D).