summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-08 16:06:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-09 05:12:04 +0100
commit7939d3879c60d9cb7d04560758748a67eb710699 (patch)
treef378d745618d8799f681b42ba44cb990f1fe6b91 /src
parent04baf8662c1b4266423fba4141b4b244ad7e05bf (diff)
w
Diffstat (limited to 'src')
-rw-r--r--src/chunk-walls.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp
index 1bc0c376..77ab2673 100644
--- a/src/chunk-walls.cpp
+++ b/src/chunk-walls.cpp
@@ -37,10 +37,10 @@ template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::corner_L,
{
constexpr float x_offset = (float)((unsigned)X)/2u;
return {{
- { X, -Y, Z },
- { X, -Y, 0 },
- { x_offset + -X, -Y, Z },
- { x_offset + -X, -Y, 0 },
+ { -X + x_offset, -Y, Z },
+ { -X + x_offset, -Y, 0 },
+ { -X, -Y, Z },
+ { -X, -Y, 0 },
}};
}
@@ -106,7 +106,7 @@ template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::side, fal
// side west
template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::side, true>(float depth)
{
- auto right = Vector2{ X, Y };
+ auto right = Vector2{ -X, Y };
auto left = Vector2{ right.x() - depth, right.y() };
return {{
{ right.x(), right.y(), Z },