#pragma once #include #include #include "Utility.h" struct TempMaterial { std::vector outVB; std::vector unindexedVB; std::vector vbIndices; std::vector outTC; std::vector unindexedTC; std::vector tcIndices; std::vector outVN; std::vector unindexedVN; std::vector vnIndices; std::vector unindexedTan; std::vector outTan; std::vector outIB; unsigned int ibCount = 0; std::string diffuseTextureName; Vec3 diffuseColor; std::string specularTextureName; std::string normalTextureName; float shininess = 1.0f; }; void cookModel(std::string& in, std::string& MTLin, std::string& out); void parseMaterials(std::unordered_map& mats, std::vector& mtl); std::vector getNeededTextures(std::string mtl);