Another AABB blocks render fix

This commit is contained in:
MihailRis 2023-12-10 23:42:46 +03:00
parent 00db63723a
commit 287b530a4c

View File

@ -267,7 +267,7 @@ void BlocksRenderer::blockAABB(const ivec3& icoord,
vec3 fZ(Z);
// TODO: simplify this pile of magic calculations and fix 5th arg (laxisZ)
vec3 local = offset.x*fX+offset.y*fY+offset.z*-fZ;
vec3 local = (1.0f-offset.x-size.x)*fX+offset.y*fY+offset.z*-fZ;
face(coord, X, Y, Z, Z+loff,
local-size.z*fZ-offset.y*fY,
size.x, size.y, size.z, texfaces[5], lights); // north