X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fshader.hpp;h=f42d19b396b1d8187302eea77c6fe9b4a1401dc2;hb=c877ddd21f402381d88a6bebdd5c7c0b4ac28ba9;hp=97211c4aa6799860eb7f748c838369800d680f7d;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/shader.hpp b/src/shader.hpp index 97211c4..f42d19b 100644 --- a/src/shader.hpp +++ b/src/shader.hpp @@ -69,22 +69,36 @@ public: void SetLightDirection(const glm::vec3 &); + void SetFogDensity(float); + 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); + const glm::mat4 &Projection() const { return projection; } + const glm::mat4 &View() const { return view; } + const glm::mat4 &GetVP() const { return vp; } + private: Program program; glm::vec3 light_direction; glm::vec3 light_color; + float fog_density; + + glm::mat4 projection; + glm::mat4 view; glm::mat4 vp; GLuint m_handle; + GLuint mv_handle; GLuint mvp_handle; GLuint light_direction_handle; GLuint light_color_handle; + GLuint fog_density_handle; };