aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/mesh.hpp')
-rw-r--r--src/o3d/mesh.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/o3d/mesh.hpp b/src/o3d/mesh.hpp
index 525d9bd..d1d3f1c 100644
--- a/src/o3d/mesh.hpp
+++ b/src/o3d/mesh.hpp
@@ -17,7 +17,8 @@ struct Mesh {
std::vector<engine::math::Vector3> vertices;
std::vector<engine::math::Vector3> normals;
- std::vector<std::array<std::array<size_t, 2>, 3>> indices;
+ std::vector<engine::math::Vector2> uvs;
+ std::vector<std::array<std::array<size_t, 3>, 3>> indices;
// TODO: find a better way to do this. This workaround is due to the fact that vulkan only
// accepts a single index, not an index for each attributes