From f978450949764bd4bd90dbad7c294097a7ee7e91 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Mar 2023 20:28:10 +0100 Subject: shaders: fix clickable box off for control panel 1 --- shaders/tile.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') 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 constexpr Math::Vector2 tile_shader::project(const Math::Vector3& 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) }; } -- cgit v1.2.3