aboutsummaryrefslogtreecommitdiff
path: root/src/o3d
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d')
-rw-r--r--src/o3d/vertex.hpp2
-rw-r--r--src/o3d/vertex_data.hpp26
2 files changed, 0 insertions, 28 deletions
diff --git a/src/o3d/vertex.hpp b/src/o3d/vertex.hpp
index 8d02297..c09f26e 100644
--- a/src/o3d/vertex.hpp
+++ b/src/o3d/vertex.hpp
@@ -2,7 +2,6 @@
#define O3D_VERTEX_HPP
#include "math/vector.hpp"
-#include "o3d/vertex_data.hpp"
namespace engine::o3d {
@@ -10,7 +9,6 @@ struct Vertex {
engine::math::Vector4 vertex;
engine::math::Vector3 normal;
engine::math::Vector2 uv;
- engine::o3d::VertexData data;
};
}
diff --git a/src/o3d/vertex_data.hpp b/src/o3d/vertex_data.hpp
deleted file mode 100644
index fa62271..0000000
--- a/src/o3d/vertex_data.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef O3D_VERTEX_DATA_HPP
-#define O3D_VERTEX_DATA_HPP
-
-#include "math/vector.hpp"
-
-namespace engine::o3d {
-
-struct VertexData {
- static constexpr VertexData lerp(const VertexData& vd1, const VertexData& vd2, float b0) {
- return {
- b0 * vd1.world_loc + (1.f - b0) * vd2.world_loc,
- };
- }
-
- static constexpr VertexData bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float b0, float b1) {
- return {
- b0 * vd1.world_loc + b1 * vd2.world_loc + (1.f - b0 - b1) * vd3.world_loc,
- };
- }
-
- engine::math::Vector3 world_loc;
-};
-
-}
-
-#endif // O3D_VERTEX_DATA_HPP