]> git.localhorst.tv Git - blank.git/blobdiff - src/shader.hpp
split entity from controller
[blank.git] / src / shader.hpp
index c97e073111b9cf45a4dacf7f63dd620012d98d5c..195376c0ce093ab5bdf13ebe601a688febff4d63 100644 (file)
@@ -67,7 +67,11 @@ public:
 
        void Activate();
 
+       void SetLightDirection(const glm::vec3 &);
+
        void SetM(const glm::mat4 &m);
+       void SetProjection(const glm::mat4 &p);
+       void SetView(const glm::mat4 &v);
        void SetVP(const glm::mat4 &v, const glm::mat4 &p);
        void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p);
 
@@ -77,6 +81,8 @@ private:
        glm::vec3 light_direction;
        glm::vec3 light_color;
 
+       glm::mat4 projection;
+       glm::mat4 view;
        glm::mat4 vp;
 
        GLuint m_handle;