Create an isometric depth sort plugin.
Adds a render-phase system that sets PixiJS zIndex based on world-space position, enabling correct front-to-back ordering in isometric views.
zIndex
Optional
const ecs = ECSpresso.create() .withPlugin(createRenderer2DPlugin({ ... })) .withPlugin(createIsoDepthSortPlugin()) .build(); Copy
const ecs = ECSpresso.create() .withPlugin(createRenderer2DPlugin({ ... })) .withPlugin(createIsoDepthSortPlugin()) .build();
Create an isometric depth sort plugin.
Adds a render-phase system that sets PixiJS
zIndexbased on world-space position, enabling correct front-to-back ordering in isometric views.