aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/tri.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/tri.hpp')
-rw-r--r--src/o3d/tri.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/o3d/tri.hpp b/src/o3d/tri.hpp
index 712c135..56ff1dd 100644
--- a/src/o3d/tri.hpp
+++ b/src/o3d/tri.hpp
@@ -12,8 +12,8 @@ struct Triangle {
Vertex vertex2;
Vertex vertex3;
- constexpr TriangleDerived to_derived() const & {
- return {{vertex1.vertex, 1.f, 0.f}, {vertex2.vertex, 0.f, 1.f}, {vertex3.vertex, 0.f, 0.f}};
+ constexpr TriangleDerived<engine::math::Vector4> to_derived() const & {
+ return { { vertex1.vertex, 1.f, 0.f }, { vertex2.vertex, 0.f, 1.f }, { vertex3.vertex, 0.f, 0.f } };
}
};