From c0b81150298ce9f2f21da42f26a57fe59a93bb77 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 5 Aug 2018 04:40:01 +0500 Subject: Replaced usage of old texture atlas --- src/RendererSectionData.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/RendererSectionData.cpp') diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp index ab3812d..de79da4 100644 --- a/src/RendererSectionData.cpp +++ b/src/RendererSectionData.cpp @@ -48,6 +48,7 @@ void AddFacesByBlockModel(RendererSectionData &data, const BlockModel &model, co data.models.push_back(transform * face.transform); data.textures.push_back(face.texture); + data.textureLayers.push_back(face.layer); data.colors.push_back(face.color); data.lights.push_back(glm::vec2(light, skyLight)); } @@ -188,6 +189,7 @@ RendererSectionData ParseSection(const SectionsData §ions) } } data.textures.shrink_to_fit(); + data.textureLayers.shrink_to_fit(); data.models.shrink_to_fit(); data.colors.shrink_to_fit(); -- cgit v1.2.3