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:
@@ -8,6 +8,7 @@ import sys
|
||||
|
||||
import unity_assets as ua
|
||||
from mt_run import HERE, find_blender, run_blender_script
|
||||
from png_compress import compress_dir_pngs
|
||||
|
||||
|
||||
def write_unity_assets(outdir, summary, max_size):
|
||||
@@ -79,6 +80,7 @@ def translate_fbx(src, outdir, max_size=2048, blender=None):
|
||||
summary = run_blender_script(
|
||||
blender_exe, "bl_convert.py", [src, outdir, str(max_size)]
|
||||
)
|
||||
compress_dir_pngs(outdir, suffixes=("_base.png", "_mix.png"))
|
||||
unity = write_unity_assets(outdir, summary, max_size)
|
||||
return {**summary, "unity": unity}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user