X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fshader.hpp;h=f42d19b396b1d8187302eea77c6fe9b4a1401dc2;hb=d2d3cb877984b97fafb97254f5005cbf4bcf47a6;hp=ea5b84474223fab1da9bb8fd18ad1c7e859643c9;hpb=4a21e9e32525fe23915db97f3439cae780994118;p=blank.git diff --git a/src/shader.hpp b/src/shader.hpp index ea5b844..f42d19b 100644 --- a/src/shader.hpp +++ b/src/shader.hpp @@ -69,6 +69,8 @@ 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); @@ -85,14 +87,18 @@ private: 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; };