GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Model3D::Vertex Struct Reference

Data layout for the attributes of a single vertex of a 3D model mesh. More...

#include <GREM/graphics_3d/Model3D.hpp>

Public Attributes

vec3 vertexPosition
 Bind-pose position relative to the origin of the model.
iA2B10G10R10vec4norm vertexNormal
 Unit vector (XYZ) pointing away from the vertex surface in the bind pose of the model.
iA2B10G10R10vec4norm vertexTangent
 Unit vector (XYZ) pointing in some direction along the vertex surface in the bind pose of the model, along with a sign component (W) indicating the handedness of the tangent basis.
vec2 vertexTextureCoordinatesChannel0
 Texture UV coordinates that map to this vertex on channel 0.
vec2 vertexTextureCoordinatesChannel1
 Texture UV coordinates that map to this vertex on channel 1.
u8vec4norm vertexColor
 Vertex tint color.
u8vec4 vertexJointIndices
 Indices of the 4 joints that this vertex is skinned by.
u8vec4norm vertexJointWeights
 Weights of the 4 joints that this vertex is skinned by.

Detailed Description

Data layout for the attributes of a single vertex of a 3D model mesh.

Meets the requirements of the grem::graphics::mesh_vertex concept.

Member Data Documentation

◆ vertexPosition

vec3 grem::graphics::Model3D::Vertex::vertexPosition

Bind-pose position relative to the origin of the model.

◆ vertexNormal

iA2B10G10R10vec4norm grem::graphics::Model3D::Vertex::vertexNormal

Unit vector (XYZ) pointing away from the vertex surface in the bind pose of the model.

◆ vertexTangent

iA2B10G10R10vec4norm grem::graphics::Model3D::Vertex::vertexTangent

Unit vector (XYZ) pointing in some direction along the vertex surface in the bind pose of the model, along with a sign component (W) indicating the handedness of the tangent basis.

◆ vertexTextureCoordinatesChannel0

vec2 grem::graphics::Model3D::Vertex::vertexTextureCoordinatesChannel0

Texture UV coordinates that map to this vertex on channel 0.

◆ vertexTextureCoordinatesChannel1

vec2 grem::graphics::Model3D::Vertex::vertexTextureCoordinatesChannel1

Texture UV coordinates that map to this vertex on channel 1.

◆ vertexColor

u8vec4norm grem::graphics::Model3D::Vertex::vertexColor

Vertex tint color.

◆ vertexJointIndices

u8vec4 grem::graphics::Model3D::Vertex::vertexJointIndices

Indices of the 4 joints that this vertex is skinned by.

◆ vertexJointWeights

u8vec4norm grem::graphics::Model3D::Vertex::vertexJointWeights

Weights of the 4 joints that this vertex is skinned by.


The documentation for this struct was generated from the following file: