MOS
vertex.hpp
1 #pragma once
2 #include <glm/glm.hpp>
3 
4 namespace mos::gfx {
5 
7 class Vertex final {
8 public:
9  glm::vec3 position = glm::vec3(0.0f);
10 
11  glm::vec3 normal = glm::vec3(0.0f);
12 
13  glm::vec3 tangent = glm::vec3(0.0f);
14 
16  glm::vec2 uv = glm::vec2(0.0f);
17 
19  void apply_transform(const glm::mat4 &transform);
20 };
21 } // namespace mos::gfx
glm::vec2 uv
Texture coordinate.
Definition: vertex.hpp:16
Definition: assets.hpp:17
Vertex structure, supported by the renderer.
Definition: vertex.hpp:7
void apply_transform(const glm::mat4 &transform)
Apply a transformation matrix to the vertex.