diff options
author | LaG1924 <lag1924@gmail.com> | 2021-06-28 13:25:32 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-06-28 13:25:32 +0200 |
commit | f324c49d896eae159b7499ad6467f03dbcc900ca (patch) | |
tree | 6b4565293c2c43edd6484aaf38ea33a66fc91adc /src/RendererSectionData.cpp | |
parent | Moved block face model matrix transformation to CPU (diff) | |
download | AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar.gz AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar.bz2 AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar.lz AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar.xz AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.tar.zst AltCraft-f324c49d896eae159b7499ad6467f03dbcc900ca.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RendererSectionData.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp index cf05528..eabfee2 100644 --- a/src/RendererSectionData.cpp +++ b/src/RendererSectionData.cpp @@ -39,11 +39,9 @@ void AddFacesByBlockModel(RendererSectionData &data, const BlockFaces &model, co } glm::mat4 transformed = transform * model.transform * face.transform; data.positions.push_back(transformed * glm::vec4(0, 0, 0, 1)); - data.positions.push_back(transformed * glm::vec4(1, 0, 1, 1)); - data.positions.push_back(transformed * glm::vec4(1, 0, 0, 1)); - data.positions.push_back(transformed * glm::vec4(0, 0, 0, 1)); data.positions.push_back(transformed * glm::vec4(0, 0, 1, 1)); data.positions.push_back(transformed * glm::vec4(1, 0, 1, 1)); + data.positions.push_back(transformed * glm::vec4(1, 0, 0, 1)); data.textures.push_back(face.texture); data.textureLayers.push_back(face.layer); data.textureFrames.push_back(face.frames); |