Updated all compiled models

Fixed UV mappings
This commit is contained in:
Xiao Qi 2023-01-17 14:38:50 +08:00
parent bce7237e20
commit 1b4397c76d
13 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -239,11 +239,9 @@ namespace SHADE
bone.name.resize(info.charCount); bone.name.resize(info.charCount);
file.read(bone.name.data(), info.charCount); file.read(bone.name.data(), info.charCount);
file.read(reinterpret_cast<char*>(&bone.offset), sizeof(SHMatrix)); file.read(reinterpret_cast<char*>(&bone.offset), sizeof(SHMatrix));
uint32_t weightCount; bone.weights.resize(info.weightCount);
file.read(reinterpret_cast<char*>(&weightCount), sizeof(uint32_t)); file.read(reinterpret_cast<char*>(bone.weights.data()), sizeof(BoneWeight) * info.weightCount);
bone.weights.resize(weightCount);
file.read(reinterpret_cast<char*>(bone.weights.data()), sizeof(BoneWeight) * weightCount);
} }
data.VertexBoneIndices.resize(header.vertexCount); data.VertexBoneIndices.resize(header.vertexCount);