diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-26 18:19:46 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-26 18:28:37 +0200 |
| commit | 05dee8a02773141cbe6cbfb1c0557018210ced05 (patch) | |
| tree | 25e1e9fd68a05912c146ccc45ceb07c3d6f99ae4 /shaders/tile.hpp | |
| parent | 50273c040e605b6dbee3389c0c2adce2b8d85701 (diff) | |
a
Diffstat (limited to 'shaders/tile.hpp')
| -rw-r--r-- | shaders/tile.hpp | 1 |
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) }; } |
