3个版本 (破坏性更新)
0.3.0 | 2024年6月24日 |
---|---|
0.1.0 | 2024年6月14日 |
0.0.6 | 2024年6月14日 |
#544 in 游戏开发
每月128次下载
14KB
107 代码行
Ira CLI
Ira游戏引擎的命令行界面。
Usage: ira <COMMAND>
Commands:
pack Packs various game assets (glTF, etc.) into a single Drum
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
安装
cargo install ira_cli
打包资源
> ira pack --help
Packs various game assets (glTF, etc.) into a single Drum
Usage: ira pack [OPTIONS] --output <OUTPUT> [ASSETS]...
Arguments:
[ASSETS]... The entry files to pack
Options:
-o, --output <OUTPUT> The output path for the Drum
-i, --irradiance <IRRADIANCE> A path to the irradiance map
-p, --prefiltered <PREFILTERED> A path to the prefiltered map
-b, --brdf <BRDF> A path to the BRDF LUT
-c, --compress Whether to use Block Compression for textures
-s, --srgb Whether the assets are in sRGB color space
-m, --mipmaps [<MIPMAPS>] The number of mipmaps to generate for textures. If not specified, mipmaps will be generated automatically
-h, --help Print help
> ira pack models/bottled_car/scene.gltf -i ibl_irradiance_map.png -p ibl_prefilter_map.png -b ibl_brdf_lut.png --compress --mipmaps -o car.drum --srgb
依赖项
~9.5MB
~178K SLoC