|
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::vec2 Vertex::lightmapUvCoordinate = glm::vec2(0.0f) |
Definition at line 23 of file Vertex.h.
Referenced by EngineCore::GltfLoader::loadPrimitiveData().
| glm::vec4 Vertex::normal = glm::vec4(0.0f) |
Definition at line 20 of file Vertex.h.
Referenced by EngineCore::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData(), EngineCore::MeshLoaderGltf::loadMesh(), and EngineCore::GltfLoader::loadPrimitiveData().
| glm::vec4 Vertex::position = glm::vec4(0.0f) |
Definition at line 19 of file Vertex.h.
Referenced by EngineCore::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData(), EngineCore::MeshLoaderGltf::loadMesh(), EngineCore::GltfLoader::loadPrimitiveData(), and Vertex().
| glm::vec4 Vertex::tangent = glm::vec4(0.0f, 0.0f, 0.0f, 1.0f) |
Definition at line 21 of file Vertex.h.
Referenced by EngineCore::GltfLoader::loadPrimitiveData().
| glm::vec2 Vertex::textureCoordinate = glm::vec2(0.0f) |
Definition at line 22 of file Vertex.h.
Referenced by EngineCore::GltfLoader::GltfMeshPrimitiveData::GltfMeshPrimitiveData(), EngineCore::MeshLoaderGltf::loadMesh(), and EngineCore::GltfLoader::loadPrimitiveData().