9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 20:09:13 +00:00

修改png优化实现

This commit is contained in:
XiaoMoMi
2025-10-27 03:03:28 +08:00
parent b43bb00060
commit fbcb28e923
4 changed files with 526 additions and 342 deletions

View File

@@ -89,15 +89,16 @@ resource-pack:
# Fix images that are not within the texture atlas. It is unreasonable to always rely on plugins to fix your mistakes.
# You should strive to make your resource pack more standardized after gaining some experience with resource packs.
fix-atlas: true
# Optimize your resource pack by reducing its size without any quality loss.
# Due to potentially long processing time, use this only for production resource pack.
# Optimize your resource pack by reducing its size without any noticeable quality loss.
optimization:
enable: false
# .png
texture:
enable: true
color-quantization: false
# If your image is special, for example, containing color pixels that need to be specifically recognized by a shader, the optimization might break it. You can add exclusions here.
exclude:
- pack.png
- assets/minecraft/textures/block/do_not_optimize.png
# .json / .mcmeta
json:
enable: true