Implement playable Mac client and rendering validation

This commit is contained in:
shen
2026-09-11 14:58:22 +08:00
parent 1ab68bd06e
commit 374d4165d8
233 changed files with 6546 additions and 284 deletions
+5
View File
@@ -45,12 +45,17 @@ struct TriGroup {
};
struct Mesh {
struct BoneBounds {
float min[3] = {}, max[3] = {};
bool valid = false;
};
std::string name;
VertexKind kind = VertexKind::Unknown;
std::vector<Vertex> vertices;
std::vector<uint32_t> indices; // 三角形列表
std::vector<TriGroup> tri_groups;
std::vector<int32_t> bone_bindings; // mesh 局部骨骼槽 → skeleton 骨骼索引
std::vector<BoneBounds> bone_bounds; // Parallel source BoneBindings OBBMin/OBBMax.
uint32_t source_bone_weight_slots = 0; // 顶点类型声明值;审计 >4/8 权重
uint32_t source_bone_index_slots = 0; // packed UInt32 记为 4
// 与 granny_mesh.MaterialBindings 平行:每项 = 解析出的漫反射贴图文件名