Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
Loading...
Searching...
No Matches
rendering_engine::VertexPositionColorTexture Struct Reference

Vertex format for unlit 3D geometry. More...

#include <vertex_declarations.hpp>

Public Member Functions

 VertexPositionColorTexture ()=default
 VertexPositionColorTexture (const glm::vec3 &pos, const glm::vec4 &col, const glm::vec2 &uv)
 Construct with position, UV, and color.

Public Attributes

glm::vec3 position
 3D position
glm::vec4 color
 Vertex color (RGBA)
glm::vec2 textureCoordinates
 UV coordinates for texturing.

Detailed Description

Vertex format for unlit 3D geometry.

Used for 3D models/materials that don't require lighting calculations, such as particle systems, billboards, or flat-shaded meshes.

Definition at line 76 of file vertex_declarations.hpp.

Constructor & Destructor Documentation

◆ VertexPositionColorTexture() [1/2]

rendering_engine::VertexPositionColorTexture::VertexPositionColorTexture ( )
default

◆ VertexPositionColorTexture() [2/2]

rendering_engine::VertexPositionColorTexture::VertexPositionColorTexture ( const glm::vec3 & pos,
const glm::vec4 & col,
const glm::vec2 & uv )
inline

Construct with position, UV, and color.

Parameters
pos3D position
colRGBA color
uvTexture coordinates

Definition at line 90 of file vertex_declarations.hpp.

94 :
95 position(pos),
96 color(col),
98 {}
glm::vec2 textureCoordinates
UV coordinates for texturing.

Member Data Documentation

◆ color

glm::vec4 rendering_engine::VertexPositionColorTexture::color

Vertex color (RGBA)

Definition at line 79 of file vertex_declarations.hpp.

◆ position

glm::vec3 rendering_engine::VertexPositionColorTexture::position

3D position

Definition at line 78 of file vertex_declarations.hpp.

◆ textureCoordinates

glm::vec2 rendering_engine::VertexPositionColorTexture::textureCoordinates

UV coordinates for texturing.

Definition at line 80 of file vertex_declarations.hpp.


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