summaryrefslogtreecommitdiff
path: root/assetFactory/plane.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/plane.cpp')
-rw-r--r--assetFactory/plane.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/assetFactory/plane.cpp b/assetFactory/plane.cpp
new file mode 100644
index 0000000..563c4e9
--- /dev/null
+++ b/assetFactory/plane.cpp
@@ -0,0 +1,15 @@
+#include "plane.h"
+#include "modelFactoryMesh.h"
+
+Plane::CreatedFaces
+Plane::createMesh(ModelFactoryMesh & mesh, const Mutation::Matrix & mutation) const
+{
+ static constexpr std::array<glm::vec3, 4> VERTICES {{
+ {n, n, z},
+ {y, n, z},
+ {y, y, z},
+ {n, y, z},
+ }};
+
+ return {mesh.add_namedFace("plane", addMutatedToMesh(mesh, VERTICES, mutation))};
+}