Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
rendering_engine::VertexPositionColorTextureNormalTangent Struct Reference

Vertex format for lit 3D geometry (normal and tangent support). More...

#include <vertex_declarations.hpp>

Public Member Functions

 VertexPositionColorTextureNormalTangent ()=default
 
 VertexPositionColorTextureNormalTangent (const glm::vec3 &pos, const glm::vec4 &col, const glm::vec2 &uv, const glm::vec3 &nrm, const glm::vec3 &tan)
 Construct with all vertex attributes. More...
 

Public Attributes

glm::vec3 position
 3D position More...
 
glm::vec4 color
 Vertex color (RGBA) More...
 
glm::vec2 textureCoordinates
 UV coordinates for texturing. More...
 
glm::vec3 normal
 Surface normal (for lighting) More...
 
glm::vec3 tangent
 Tangent (for normal mapping) More...
 

Detailed Description

Vertex format for lit 3D geometry (normal and tangent support).

Used for 3D meshes with normal mapping or lighting (Phong, Blinn-Phong, PBR, etc.).

Definition at line 106 of file vertex_declarations.hpp.

Constructor & Destructor Documentation

◆ VertexPositionColorTextureNormalTangent() [1/2]

rendering_engine::VertexPositionColorTextureNormalTangent::VertexPositionColorTextureNormalTangent ( )
default

◆ VertexPositionColorTextureNormalTangent() [2/2]

rendering_engine::VertexPositionColorTextureNormalTangent::VertexPositionColorTextureNormalTangent ( const glm::vec3 &  pos,
const glm::vec4 &  col,
const glm::vec2 &  uv,
const glm::vec3 &  nrm,
const glm::vec3 &  tan 
)
inline

Construct with all vertex attributes.

Parameters
pos3D position
colRGBA color
uvTexture coordinates
nrmNormal vector
tanTangent vector

Definition at line 124 of file vertex_declarations.hpp.

Member Data Documentation

◆ color

glm::vec4 rendering_engine::VertexPositionColorTextureNormalTangent::color

Vertex color (RGBA)

Definition at line 109 of file vertex_declarations.hpp.

◆ normal

glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::normal

Surface normal (for lighting)

Definition at line 111 of file vertex_declarations.hpp.

◆ position

glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::position

3D position

Definition at line 108 of file vertex_declarations.hpp.

◆ tangent

glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::tangent

Tangent (for normal mapping)

Definition at line 112 of file vertex_declarations.hpp.

◆ textureCoordinates

glm::vec2 rendering_engine::VertexPositionColorTextureNormalTangent::textureCoordinates

UV coordinates for texturing.

Definition at line 110 of file vertex_declarations.hpp.


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