summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:28:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 20:34:02 +0100
commitf978450949764bd4bd90dbad7c294097a7ee7e91 (patch)
tree2dfab99882d7338a5da271cd8b4a2d00b6f7898f /shaders
parentb29c649a478d638af9778d0cff45a8f457db923b (diff)
shaders: fix clickable box off for control panel 1
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/tile.hpp b/shaders/tile.hpp
index 73dc019d..b12176c5 100644
--- a/shaders/tile.hpp
+++ b/shaders/tile.hpp
@@ -62,7 +62,7 @@ decltype(auto) tile_shader::draw(T&& mesh, Xs&&... xs)
template<typename T>
constexpr Math::Vector2<T> tile_shader::project(const Math::Vector3<T>& pt)
{
- const auto x = pt[0], y = pt[1], z = pt[2];
+ const auto x = pt[0], y = pt[1], z = -pt[2];
return { x-y, (x+y+z*2)*T(.59) };
}