Refine NPC fabric UVs and remove baked AO blotches
This commit is contained in:
1 parent
31574b8d82
commit
d7220c1a0a
12 files changed
+64
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user