X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FDirectionalLighting.hpp;h=70492efc865f42f4597c3365717aacb3cd3b8ff9;hb=f430ad789fe620ad2e8b2b2b99af868372791295;hp=df89053cd7e342df9d6bfcfd8ef6197fa3decb92;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/graphics/DirectionalLighting.hpp b/src/graphics/DirectionalLighting.hpp index df89053..70492ef 100644 --- a/src/graphics/DirectionalLighting.hpp +++ b/src/graphics/DirectionalLighting.hpp @@ -9,6 +9,8 @@ namespace blank { +class ArrayTexture; + class DirectionalLighting { public: @@ -17,7 +19,9 @@ public: void Activate() noexcept; void SetLightDirection(const glm::vec3 &) noexcept; + void SetLightColor(const glm::vec3 &) noexcept; + void SetTexture(ArrayTexture &) noexcept; void SetFogDensity(float) noexcept; void SetM(const glm::mat4 &m) noexcept; @@ -33,11 +37,6 @@ public: private: Program program; - glm::vec3 light_direction; - glm::vec3 light_color; - - float fog_density; - glm::mat4 projection; glm::mat4 view; glm::mat4 vp; @@ -45,6 +44,7 @@ private: GLuint m_handle; GLuint mv_handle; GLuint mvp_handle; + GLuint sampler_handle; GLuint light_direction_handle; GLuint light_color_handle; GLuint fog_density_handle;