8 Vertex(glm::vec3 pos, glm::vec3 n, glm::vec2 uv,
int textureID,
int ao);
9 Vertex(glm::vec3 pos, glm::vec3 n, glm::vec2 uv);
11 void translate(glm::vec3 t);
12 void rotate(glm::vec3 axis,
float angle);
13 void data(
int textureID,
int ao);
15 glm::vec3 pos, normal;
20 static gl::VertexLayout layout() {
24 {0, gl::VertexAttribute::Float, 3, offsetof(
Vertex, pos)},
25 {1, gl::VertexAttribute::Float, 3, offsetof(
Vertex, normal)},
26 {2, gl::VertexAttribute::Float, 2, offsetof(
Vertex, uv)},
27 {3, gl::VertexAttribute::UInt, 1, offsetof(
Vertex,
m_data)},