+ | Texture parsing on obj

This commit is contained in:
TheRedShip
2025-01-28 12:20:09 +01:00
parent e9c77cfdd4
commit 7b81995724
14 changed files with 2940 additions and 1195 deletions

View File

@ -40,6 +40,11 @@ struct GPUTriangle
alignas(16) glm::vec3 vertex2;
alignas(16) glm::vec3 normal;
glm::vec2 texture_vertex1;
glm::vec2 texture_vertex2;
glm::vec2 texture_vertex3;
int mat_index;
};
@ -121,6 +126,7 @@ class Scene
std::vector<GPUMaterial> &getMaterialData();
std::vector<GLuint> &getTextureIDs();
std::vector<std::string> &getTextures();
std::vector<GPUBvhData> &getBvhData();
std::vector<GPUBvh> &getBvh();