Build a model from blocks, in code or in MagicaVoxel. voxel-sprites turns it into crisp, hand-shaded pixel sprites, turned any way you need, with shadows and colour swaps. Use them in a browser game, or download a sprite sheet for any engine.
npm i voxel-sprites threePick a model or drop in your own .vox file, set it up, and download a sheet in the TexturePacker format: Phaser and PixiJS load it as it is, and Godot, Unity and others through their TexturePacker importers. It all runs in your browser; nothing is uploaded.
Bake small things once for inventories, shops and menus. One model gives every colour.
Bake at load time in a browser game, or export sheets for anything else.
SLOT.MAIN, DARK and LIGHT, and every colour reuses one mesh.readVox loads whole scenes; writeVox saves code-built models to edit there.lit: true bakes morning, noon and evening. Blend the nearest two as the day passes.