Vertex
struct · #include <rayrai/OpenGLMesh.hpp>
Vertex attributes used by OpenGLMesh.
Public attributes
Position
cpp
glm::vec3 PositionObject-space position (attribute 0).
Normal
cpp
glm::vec3 NormalObject-space normal (attribute 1).
TexCoords
cpp
glm::vec2 TexCoordsPrimary UV (attribute 2).
TexCoords2
cpp
glm::vec2 TexCoords2Secondary UV (attribute 10); copied from TexCoords when all are zero.
Tangent
cpp
glm::vec4 Tangentxyz tangent, w handedness (attribute 8); generated when missing.
Color
cpp
glm::vec4 ColorVertex color RGBA (attribute 9).