Compress baked PNGs and tighten XPbr shadows with URP quality tweaks.

Add png_compress to the model pipeline and update TownSquare lighting plus MaleExplorer/plaza textures.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-09-28 16:25:38 +08:00
co-authored by Cursor
parent 9793d8581d
commit 79369e4473
39 changed files with 383 additions and 32 deletions
+3
View File
@@ -7,6 +7,7 @@ import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from png_compress import compress_png, prepare_blender_png
DEFAULT_RAY_PCT = 0.02 # 测量失败时回退:低模包围盒对角线 * 2%
RAY_SAFETY = 1.5 # 自适应射线安全系数(分离 P99 × 此值)
@@ -199,8 +200,10 @@ def _bake_pass(low, high, target_node, name, bake_type, size, colorspace,
path = os.path.abspath(os.path.join(outdir, "%s_%s.png" % (stem, name)))
img.filepath_raw = path
img.file_format = 'PNG'
prepare_blender_png(100)
img.save()
bpy.data.images.remove(img)
compress_png(path)
return os.path.basename(path)