]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/DirectionalLighting.hpp
group entity updates in as few packets as possible
[blank.git] / src / graphics / DirectionalLighting.hpp
index df89053cd7e342df9d6bfcfd8ef6197fa3decb92..70492efc865f42f4597c3365717aacb3cd3b8ff9 100644 (file)
@@ -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;