Represents a 3D vertex with attributes like position, normal, and texture coordinates. More...
#include <mesh.hpp>
Public Member Functions | |
Vertex ()=default | |
Default constructor for the Vertex structure. | |
Vertex (const glm::vec3 &position, const glm::vec3 &normal, const glm::vec2 &texCoord) | |
Constructor for the Vertex structure. | |
bool | operator== (const Vertex &other) const |
Public Attributes | |
glm::vec3 | position |
The position of the vertex in 3D space. | |
glm::vec3 | normal |
The normal vector of the vertex for lighting calculations. | |
glm::vec2 | texCoord |
The texture coordinates of the vertex. | |
Represents a 3D vertex with attributes like position, normal, and texture coordinates.
The Vertex
structure is used to store vertex data for a 3D mesh, including position, normal vector, and texture coordinates. This structure is typically used as input to shaders for rendering the mesh.
|
inline |
|
inline |
glm::vec3 Raftel::Vertex::normal |
glm::vec3 Raftel::Vertex::position |
glm::vec2 Raftel::Vertex::texCoord |