diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-05 01:40:01 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-05 01:40:01 +0200 |
commit | c0b81150298ce9f2f21da42f26a57fe59a93bb77 (patch) | |
tree | 15304e4c36093a5beb524e67c976a241c5c556f3 /src/RendererSectionData.cpp | |
parent | Implemented texture atlas (diff) | |
download | AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar.gz AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar.bz2 AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar.lz AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar.xz AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.tar.zst AltCraft-c0b81150298ce9f2f21da42f26a57fe59a93bb77.zip |
Diffstat (limited to 'src/RendererSectionData.cpp')
-rw-r--r-- | src/RendererSectionData.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |