diff options
Diffstat (limited to 'shaders/tile-shader.hpp')
| -rw-r--r-- | shaders/tile-shader.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/shaders/tile-shader.hpp b/shaders/tile-shader.hpp index 0e1e4442..c53dfff5 100644 --- a/shaders/tile-shader.hpp +++ b/shaders/tile-shader.hpp @@ -20,8 +20,6 @@ struct tile_shader : GL::AbstractShaderProgram Vector4 tint() const { return tint_; } tile_shader& set_tint(const Vector4& tint); - static constexpr Vector2 project(Vector3 pt); - private: Vector2 scale_, camera_offset_; Vector4 tint_; @@ -29,10 +27,4 @@ private: enum { ScaleUniform = 0, OffsetUniform = 1, TintUniform = 2, }; }; -constexpr Vector2 tile_shader::project(const Vector3 pt) -{ - float x = -pt[1], y = -pt[0], z = pt[2]; - return { x-y, (x+y+z*2)*.75f }; -} - } // namespace floormat |
