From dcb073b158a15aba4f99e92af9b707ec4f3d72fb Mon Sep 17 00:00:00 2001 From: eArmada8 <103985972+eArmada8@users.noreply.github.com> Date: Tue, 23 Apr 2024 06:47:24 -0700 Subject: [PATCH] Semantics update Ys9 expects TANGENT and TEXCOORD_2 regardless of VPAX vs VP11 --- ys8_it3_export_assets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ys8_it3_export_assets.py b/ys8_it3_export_assets.py index c214355..572fe32 100644 --- a/ys8_it3_export_assets.py +++ b/ys8_it3_export_assets.py @@ -41,7 +41,7 @@ def make_fmt(mask, game_version = 1): elif i == 4: element['SemanticName'] = 'NORMAL' element['Format'] = 'R8G8B8A8_SNORM' - elif i == 5 and game_version == 2: + elif i == 5: element['SemanticName'] = 'TANGENT' element['Format'] = 'R8G8B8A8_SNORM' elif i in [6,7]: @@ -49,7 +49,7 @@ def make_fmt(mask, game_version = 1): element['SemanticIndex'] = str(semantic_index['COLOR']) element['Format'] = 'R8G8B8A8_UNORM' semantic_index['COLOR'] += 1 - elif i in [8,9] or (i == 10 and game_version == 2): + elif i in [8,9,10]: element['SemanticName'] = 'TEXCOORD' element['SemanticIndex'] = str(semantic_index['TEXCOORD']) element['Format'] = 'R32G32B32A32_FLOAT' #Actually R32G32 but Blender can ignore the padding