summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/shaders/tile.hpp b/shaders/tile.hpp
index c4080ab8..5c3d7a13 100644
--- a/shaders/tile.hpp
+++ b/shaders/tile.hpp
@@ -62,6 +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)
{
+ static_assert(std::is_floating_point_v<T>);
const auto x = pt[0], y = pt[1], z = -pt[2];
return { x-y, (x+y+z*2)*T(.59) };
}