X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FBlockLighting.hpp;h=9b3e8afcb72a56d19759965c711b451088e94e45;hb=afc50302943e4000a8621c23960d63b208c8a400;hp=8f7f01dca1e722cd44b8442cf365dbf7b51b3206;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/graphics/BlockLighting.hpp b/src/graphics/BlockLighting.hpp index 8f7f01d..9b3e8af 100644 --- a/src/graphics/BlockLighting.hpp +++ b/src/graphics/BlockLighting.hpp @@ -9,6 +9,8 @@ namespace blank { +class ArrayTexture; + class BlockLighting { public: @@ -16,6 +18,7 @@ public: void Activate() noexcept; + void SetTexture(ArrayTexture &) noexcept; void SetFogDensity(float) noexcept; void SetM(const glm::mat4 &m) noexcept; @@ -31,14 +34,13 @@ public: private: Program program; - float fog_density; - glm::mat4 projection; glm::mat4 view; glm::mat4 vp; GLuint mv_handle; GLuint mvp_handle; + GLuint sampler_handle; GLuint light_direction_handle; GLuint light_color_handle; GLuint fog_density_handle;