diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2021-07-04 14:30:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 14:30:34 +0200 |
commit | 3091850909b584763443168a0cb93e40fd3a3a74 (patch) | |
tree | 7cff68c0b54a7f05cef018124d9f213fa9150af7 /src/RendererSectionData.hpp | |
parent | Merge pull request #63 from LaG1924/ftr/cmake-minor-improvements (diff) | |
parent | Tint calculation moved to vertex shader (diff) | |
download | AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar.gz AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar.bz2 AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar.lz AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar.xz AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.tar.zst AltCraft-3091850909b584763443168a0cb93e40fd3a3a74.zip |
Diffstat (limited to 'src/RendererSectionData.hpp')
-rw-r--r-- | src/RendererSectionData.hpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/RendererSectionData.hpp b/src/RendererSectionData.hpp index cedb51b..edd2992 100644 --- a/src/RendererSectionData.hpp +++ b/src/RendererSectionData.hpp @@ -30,13 +30,18 @@ struct SectionsData { BlockLightness GetSkyLight(const Vector &pos) const; }; +struct VertexData { + glm::vec3 positions[4]; + glm::vec2 uvs[4]; + float uvLayers; + float animations; + glm::vec3 colors; + glm::vec2 lights; + uint8_t padding[20]; +}; + struct RendererSectionData { - std::vector<glm::mat4> models; - std::vector<glm::vec4> textures; - std::vector<float> textureLayers; - std::vector<float> textureFrames; - std::vector<glm::vec3> colors; - std::vector<glm::vec2> lights; + std::vector<VertexData> vertices; size_t hash = 0; Vector sectionPos; bool forced = false; |