diff options
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; |