From 94311f9c4e82b7475802b1934cc0c5b243e0cd2f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 3 Mar 2021 00:08:47 +0000 Subject: Replace Transform with Location Simpler, unbinds the transformation matrices for location, now done just in the shader. --- gfx/gl/shader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gfx/gl/shader.h') diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h index e4904ed..f1fe705 100644 --- a/gfx/gl/shader.h +++ b/gfx/gl/shader.h @@ -7,6 +7,8 @@ #include #include +class Location; + class Shader { public: enum class Program { Basic = 0, Water = 1, LandMass = 2 }; @@ -14,7 +16,7 @@ public: Shader(); void setView(glm::mat4 view) const; - void setModel(glm::mat4 model, Program = Program::Basic) const; + void setModel(const Location &, Program = Program::Basic) const; void setUniform(const GLchar *, glm::vec3 dir) const; static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, std::string_view errorMessage); -- cgit v1.2.3