Skip to content

Commit

Permalink
Semantics update
Browse files Browse the repository at this point in the history
Ys9 expects TANGENT and TEXCOORD_2 regardless of VPAX vs VP11
  • Loading branch information
eArmada8 committed Apr 23, 2024
1 parent 4383b87 commit dcb073b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ys8_it3_export_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ 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]:
element['SemanticName'] = 'COLOR'
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
Expand Down

0 comments on commit dcb073b

Please sign in to comment.