![]() |
Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
|
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... | |
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.
|
default |
|
inline |
Construct with all vertex attributes.
| pos | 3D position |
| col | RGBA color |
| uv | Texture coordinates |
| nrm | Normal vector |
| tan | Tangent vector |
Definition at line 124 of file vertex_declarations.hpp.
| glm::vec4 rendering_engine::VertexPositionColorTextureNormalTangent::color |
Vertex color (RGBA)
Definition at line 109 of file vertex_declarations.hpp.
| glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::normal |
Surface normal (for lighting)
Definition at line 111 of file vertex_declarations.hpp.
| glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::position |
3D position
Definition at line 108 of file vertex_declarations.hpp.
| glm::vec3 rendering_engine::VertexPositionColorTextureNormalTangent::tangent |
Tangent (for normal mapping)
Definition at line 112 of file vertex_declarations.hpp.
| glm::vec2 rendering_engine::VertexPositionColorTextureNormalTangent::textureCoordinates |
UV coordinates for texturing.
Definition at line 110 of file vertex_declarations.hpp.