X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FDirectionalLighting.hpp;h=dd76f5e67ef11702495bfd3db62b1dc5be704dd4;hb=831183e2cbab7ebf42bf4cace86f7bf9db482ed1;hp=df89053cd7e342df9d6bfcfd8ef6197fa3decb92;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/graphics/DirectionalLighting.hpp b/src/graphics/DirectionalLighting.hpp index df89053..dd76f5e 100644 --- a/src/graphics/DirectionalLighting.hpp +++ b/src/graphics/DirectionalLighting.hpp @@ -1,14 +1,16 @@ #ifndef BLANK_GRAPHICS_DIRECTIONALLIGHTING_HPP_ #define BLANK_GRAPHICS_DIRECTIONALLIGHTING_HPP_ +#include "glm.hpp" #include "Program.hpp" #include -#include namespace blank { +class ArrayTexture; + class DirectionalLighting { public: @@ -17,7 +19,10 @@ public: void Activate() noexcept; void SetLightDirection(const glm::vec3 &) noexcept; + void SetLightColor(const glm::vec3 &) noexcept; + void SetAmbientColor(const glm::vec3 &) noexcept; + void SetTexture(ArrayTexture &) noexcept; void SetFogDensity(float) noexcept; void SetM(const glm::mat4 &m) noexcept; @@ -33,11 +38,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,8 +45,10 @@ private: GLuint m_handle; GLuint mv_handle; GLuint mvp_handle; + GLuint sampler_handle; GLuint light_direction_handle; GLuint light_color_handle; + GLuint ambient_color_handle; GLuint fog_density_handle; };