decodeVoxRotation()
Decode a MagicaVoxel r rotation byte to a signed-permutation matrix (identity = 4).
function decodeVoxRotation(r: number): Mat3;Defined in: vox.ts:209
Parameters
| Parameter | Type |
|---|---|
r | number |
Returns
@voxolith/renderer/vox
A minimal MagicaVoxel .vox reader and writer, with no GPU or DOM dependency.
parseVox()
Read the first model of a MagicaVoxel .vox file, with its RGBA palette (or MagicaVoxel's default palette when the file has none). Later models, the scene graph and materials are ignored; use parseVoxScene for those. Headless: import it from @voxolith/renderer/vox in tools.