|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
The fundamental building block of all meshes in this engine. More...
#include <Vertex.h>
Public Member Functions | |
| Vertex ()=default | |
| Vertex (glm::vec3 pos) | |
Public Attributes | |
| glm::vec4 | position = glm::vec4(0.0f) |
| glm::vec4 | normal = glm::vec4(0.0f) |
| glm::vec4 | tangent = glm::vec4(0.0f, 0.0f, 0.0f, 1.0f) |
| glm::vec2 | textureCoordinate = glm::vec2(0.0f) |
| glm::vec2 | lightmapUvCoordinate = glm::vec2(0.0f) |
The fundamental building block of all meshes in this engine.
Layout matches GLSL std430. Uses vec4 for position/normal/tangent to avoid vec3 alignment issues (vec3 has 16-byte alignment in std430).
Size: 64 bytes (was 40 bytes before tangent addition)
|
default |
| glm::vec4 Vertex::position = glm::vec4(0.0f) |
| glm::vec4 Vertex::tangent = glm::vec4(0.0f, 0.0f, 0.0f, 1.0f) |