This commit is contained in:
zack 2025-05-23 21:13:53 -04:00
commit 444f800536
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
122 changed files with 17137 additions and 0 deletions

16
shared/Scene/MergeUtil.h Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include "shared/Scene/Scene.h"
#include "shared/Scene/VtxData.h"
void mergeNodesWithMaterial(Scene& scene, MeshData& meshData, const std::string& materialName);
// Merge material lists from multiple scenes (follows the logic of merging in mergeScenes)
void mergeMaterialLists(
// Input:
const std::vector<std::vector<Material>*>& oldMaterials, // all materials
const std::vector<std::vector<std::string>*>& oldTextures, // all textures from all material lists
// Output:
std::vector<Material>& allMaterials,
std::vector<std::string>& newTextures // all textures (merged from oldTextures, only unique items)
);