diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:39:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:39:20 +0200 |
commit | f3da1b9c19ab0337ee7852951bb5502baeb21d3b (patch) | |
tree | a2d50f7e33c909272579e9665015fc6f613cfa0a /shaders | |
parent | 360472cea877b179ef529200a9789327b11cce59 (diff) |
fix unproject()
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile-shader.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/tile-shader.hpp b/shaders/tile-shader.hpp index d538c4cc..93f78a1c 100644 --- a/shaders/tile-shader.hpp +++ b/shaders/tile-shader.hpp @@ -55,7 +55,7 @@ constexpr Vector2d tile_shader::project(const Vector3d pt) constexpr Vector2d tile_shader::unproject(const Vector2d px) { const auto X = px[0], Y = px[1]; - return { X/2 + 50 * Y / 59, 50 * Y / 59 - X/2 }; + return { X + 100 * Y / 59, 100 * Y / 59 - X }; } } // namespace floormat |