summaryrefslogtreecommitdiff
path: root/assetFactory/plane.cpp
blob: 1e522ad007bdda7a737eb6b3c190ad6599b9529c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "plane.h"
#include "assetFactoryConfig.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 {{"plane", mesh.add_face(addMutatedToMesh(mesh, VERTICES, mutation))}};
}