diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-21 10:57:57 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-21 10:57:57 +0100 |
commit | f16c897522b6418c399b5699f8378a25c2e5de4f (patch) | |
tree | 9fd1490645de30330b6ae84eebd1fe961c3f1e52 /src/RendererSectionData.hpp | |
parent | Added Gbuffer (diff) | |
download | AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.gz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.bz2 AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.lz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.xz AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.tar.zst AltCraft-f16c897522b6418c399b5699f8378a25c2e5de4f.zip |
Diffstat (limited to 'src/RendererSectionData.hpp')
-rw-r--r-- | src/RendererSectionData.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/RendererSectionData.hpp b/src/RendererSectionData.hpp index edd2992..0a80560 100644 --- a/src/RendererSectionData.hpp +++ b/src/RendererSectionData.hpp @@ -31,20 +31,21 @@ struct SectionsData { }; struct VertexData { - glm::vec3 positions[4]; - glm::vec2 uvs[4]; - float uvLayers; - float animations; - glm::vec3 colors; - glm::vec2 lights; - uint8_t padding[20]; + glm::vec3 positions[4]; + glm::vec3 normal; + glm::vec2 uvs[4]; + float uvLayers; + float animations; + glm::vec3 colors; + glm::vec2 lights; + uint8_t padding[8]; }; struct RendererSectionData { - std::vector<VertexData> vertices; + std::vector<VertexData> vertices; size_t hash = 0; Vector sectionPos; - bool forced = false; + bool forced = false; }; RendererSectionData ParseSection(const SectionsData §ions);
\ No newline at end of file |