First implementation of model-triangle intersection

This commit is contained in:
Gamemaker1998
2025-01-24 22:50:18 +01:00
parent c534c540e0
commit 68466b3b29
4 changed files with 59 additions and 3 deletions
+2
View File
@@ -22,6 +22,8 @@ public:
AABB boundingBox;
std::vector<glm::vec3> positions;
std::vector<uint32_t> indices;
std::vector<glm::vec3> es;
std::vector<glm::vec3> faceNormals;
std::optional<IntersectionInfo> intersect(Ray ray);
};
DECLARE_REF(Model)