libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::Model::Object::Vertex Struct Reference

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

#include <donut/graphics/Model.hpp>

Public Attributes

vec3 position
 Position relative to the model origin. More...
 
vec3 normal
 Unit vector pointing away from the vertex surface. More...
 
vec3 tangent
 Unit vector pointing in some direction along the vertex surface. More...
 
vec3 bitangent
 Unit vector that is the cross product of the normal and the tangent. More...
 
vec2 textureCoordinates
 Texture UV coordinates that map to this vertex. More...
 

Detailed Description

Data layout for the attributes of a single vertex of the mesh.

Note
Meets the requirements of the donut::graphics::mesh_vertex concept.

Member Data Documentation

◆ position

vec3 donut::graphics::Model::Object::Vertex::position

Position relative to the model origin.

◆ normal

vec3 donut::graphics::Model::Object::Vertex::normal

Unit vector pointing away from the vertex surface.

◆ tangent

vec3 donut::graphics::Model::Object::Vertex::tangent

Unit vector pointing in some direction along the vertex surface.

◆ bitangent

vec3 donut::graphics::Model::Object::Vertex::bitangent

Unit vector that is the cross product of the normal and the tangent.

◆ textureCoordinates

vec2 donut::graphics::Model::Object::Vertex::textureCoordinates

Texture UV coordinates that map to this vertex.


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