summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-27 10:14:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-27 10:14:30 +0200
commit263b9835ab7638cc6eedd221eec0d767e6e8f164 (patch)
tree26d586d09adec9eecf8b4d9bce7cbac34831709a
parent630e16296276eacec4fea22519b8610b88847a1a (diff)
fix wall tiles being upside down
-rw-r--r--src/tile-atlas.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tile-atlas.hpp b/src/tile-atlas.hpp
index de48f1bb..edb18764 100644
--- a/src/tile-atlas.hpp
+++ b/src/tile-atlas.hpp
@@ -67,10 +67,10 @@ constexpr tile_atlas::quad tile_atlas::wall_quad_W(const Vector3 center, const V
{
float x = size[0]*.5f, y = size[1]*.5f, z = size[2];
return {{
- {-x + center[0], y + center[1], center[2] },
{-x + center[0], y + center[1], z + center[2] },
- {-x + center[0], -y + center[1], center[2] },
+ {-x + center[0], y + center[1], center[2] },
{-x + center[0], -y + center[1], z + center[2] },
+ {-x + center[0], -y + center[1], center[2] },
}};
}
@@ -78,10 +78,10 @@ constexpr tile_atlas::quad tile_atlas::wall_quad_N(const Vector3 center, const V
{
float x = size[0]*.5f, y = size[1]*.5f, z = size[2];
return {{
- { x + center[0], -y + center[1], center[2] },
{ x + center[0], -y + center[1], z + center[2] },
- {-x + center[0], -y + center[1], center[2] },
+ { x + center[0], -y + center[1], center[2] },
{-x + center[0], -y + center[1], z + center[2] },
+ {-x + center[0], -y + center[1], center[2] },
}};
}