]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/DirectionalLighting.hpp
fix entity shader
[blank.git] / src / graphics / DirectionalLighting.hpp
index e42d2cfa61e64f23b2b5f20e4451879a55b19030..70492efc865f42f4597c3365717aacb3cd3b8ff9 100644 (file)
@@ -9,6 +9,8 @@
 
 namespace blank {
 
+class ArrayTexture;
+
 class DirectionalLighting {
 
 public:
@@ -19,6 +21,7 @@ public:
        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;
@@ -41,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;