Skip to content

Vertex ​

struct · #include <rayrai/OpenGLMesh.hpp>

Vertex attributes used by OpenGLMesh.

Public attributes ​

Position ​

cpp
glm::vec3 Position

Object-space position (attribute 0).

Normal ​

cpp
glm::vec3 Normal

Object-space normal (attribute 1).

TexCoords ​

cpp
glm::vec2 TexCoords

Primary UV (attribute 2).

TexCoords2 ​

cpp
glm::vec2 TexCoords2

Secondary UV (attribute 10); copied from TexCoords when all are zero.

Tangent ​

cpp
glm::vec4 Tangent

xyz tangent, w handedness (attribute 8); generated when missing.

Color ​

cpp
glm::vec4 Color

Vertex color RGBA (attribute 9).

RaiSim — physics for robotics and AI.