mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Another AABB blocks render fix
This commit is contained in:
parent
00db63723a
commit
287b530a4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue