Refine NPC fabric UVs and remove baked AO blotches
Full build / Import + headless tests (push) Successful in 37s
Full build / Full desktop build + optional release (push) Skipped

This commit is contained in:
zwitschi committed 2026-11-02 20:28:25 +01:00
1 parent 31574b8d82
commit d7220c1a0a
12 files changed
+64 -13

No files matched your search

+4 -1
View File
@@ -483,7 +483,10 @@ func _apply_outfit_materials(npc_type: int, outfit: Dictionary, cloth: Color,
if not tints.has(slot):
continue
var material := Materials.npc_slot(source, tints[slot])
if ao != null:
# The per-character baked AO is applied to skin, hair and fixed gear.
# On the 256² fabric maps it magnified into large patches at portrait
# distance, so cloth/pants keep their ORM weave and rely on lighting.
if ao != null and slot not in ["cloth", "pants"]:
material.ao_enabled = true
material.ao_texture = ao
material.ao_texture_channel = BaseMaterial3D.TEXTURE_CHANNEL_RED