summaryrefslogtreecommitdiffhomepage
path: root/tile-shader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tile-shader.hpp')
-rw-r--r--tile-shader.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tile-shader.hpp b/tile-shader.hpp
index ea3c57ce..4be4fe4e 100644
--- a/tile-shader.hpp
+++ b/tile-shader.hpp
@@ -14,15 +14,15 @@ struct tile_shader : GL::AbstractShaderProgram
explicit tile_shader();
- auto& set_color(const Color3& color) { setUniform(_color_uniform, color); return *this; }
- auto& set_projection(const Math::Matrix4<float>& mat) { setUniform(_projection_uniform, mat); return *this; }
+ tile_shader& set_color(const Color3& color) { setUniform(_color_uniform, color); return *this; }
+ tile_shader& set_projection(const Math::Matrix4<float>& mat, float y_scale);
tile_shader& bindTexture(GL::Texture2D& texture);
private:
enum: Int { TextureUnit = 0 };
- Int _color_uniform, _projection_uniform;
+ Int _color_uniform, _projection_uniform, _y_scale_uniform;
};
} // namespace Magnum::Examples