summaryrefslogtreecommitdiffstats
path: root/src/RendererSectionData.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-28 18:31:26 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-28 18:31:26 +0200
commit08337925fe048d2e8b746bbc82493f4c2b8603d6 (patch)
treedbedfb5aae51c59423fbc590b2c2f322f9362a79 /src/RendererSectionData.cpp
parentImplemented vertex data iterleaving (diff)
downloadAltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar.gz
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar.bz2
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar.lz
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar.xz
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.tar.zst
AltCraft-08337925fe048d2e8b746bbc82493f4c2b8603d6.zip
Diffstat (limited to 'src/RendererSectionData.cpp')
-rw-r--r--src/RendererSectionData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp
index e74590a..2588fd6 100644
--- a/src/RendererSectionData.cpp
+++ b/src/RendererSectionData.cpp
@@ -62,7 +62,7 @@ void AddFacesByBlockModel(RendererSectionData &data, const BlockFaces &model, co
vertexData.uvs[3] = TransformTextureCoord(face.texture, glm::vec2(0, 1), face.frames);
vertexData.uvLayers = face.layer;
- vertexData.animations = glm::vec2(face.texture.w / face.frames, face.frames);
+ vertexData.animations = face.frames;
vertexData.colors = face.color;
vertexData.lights = lightness;
}