| 🐦 COMMON |
|
|
--logLevel |
The log level. Valid values are trace, debug, info, warn, error, fatal, and silent |
warn |
| 🌓 PIPELINE |
|
|
--combine |
Combines all external tilesets into a single tileset. |
false |
| 📦 PACKAGE |
|
|
--dedup |
Deduplicate accessors and textures. |
true |
--prune |
Removes properties from the file if they are not referenced by a Scene. |
true |
--prune.attributes |
Whether to prune unused vertex attributes. |
true |
--prune.solidTextures |
Whether to prune solid (single-color) textures, converting them to material factors. |
true |
| 🌍 SCENE |
|
|
--instance |
Create GPU instances from shared mesh references. |
true |
--instance.min |
Number of instances required for instancing. |
5 |
--flatten |
Flatten scene graph. |
true |
| 🫖 GEOMETRY |
|
|
--draco |
Compress geometry with Draco. |
false |
--meshopt |
Compress geometry and animation with Meshopt. |
true |
--meshopt.level |
Meshopt compress level. |
high |
--quantize |
Quantize geometry, reducing precision and memory. |
false |
--weld |
Merge equivalent vertices. Required when simplifying geometry. |
true |
--simplify |
Simplify mesh geometry with meshoptimizer. |
true |
--simplify.error |
Simplification error tolerance, as a fraction of mesh extent. |
0.0001 |
--simplify.ratio |
Target ratio (0–1) of vertices to keep. |
0.0 |
--simplify.lockBorder |
Whether to lock topological borders of the mesh. |
false |
| 🎨 MATERIAL |
|
|
--palette |
Creates palette textures and merges materials. |
true |
--palette.min |
Minimum number of blocks in the palette texture. If fewer unique material values are found, no palettes will be generated. |
5 |
--join |
Join meshes and reduce draw calls. Requires --flatten. |
true |
--join.meshes |
Join distinct meshes and nodes. Requires --join. |
true |
--join.named |
Join named meshes and nodes. Requires --join. |
true |
| 🖼 TEXTURE |
|
|
--textureCompress |
Texture compression format. KTX2 optimizes VRAM usage and performance; AVIF and WebP optimize transmission size. Auto recompresses in original format. |
true |
--textureCompress.resize |
Resizes textures to given maximum [width,height] | false, preserving aspect ratio. Presets "nearest-pot", "ceil-pot", and "floor-pot" resize textures to power-of-two dimensions. |
false |
| ⏯️ ANIMATION |
|
|
--resample |
Resample animations, losslessly deduplicating keyframes |
true |
--sparse |
Reduces storage for zero-filled arrays. If disabled, existing accessors (sparse or not) are left unchanged. |
true |