X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCreatureSkin.hpp;h=b61c108a9b973dc618483aabdfab79eb01357959;hb=a19fdf3d9f0d7ecbf6eeeec817856d85049a8336;hp=0d83563b2e4f35c8575389fdeadf6b6c2509a7cf;hpb=76b630bd0a147bf7c78d3380237c86b9bfc48530;p=blobs.git diff --git a/src/graphics/CreatureSkin.hpp b/src/graphics/CreatureSkin.hpp index 0d83563..b61c108 100644 --- a/src/graphics/CreatureSkin.hpp +++ b/src/graphics/CreatureSkin.hpp @@ -3,8 +3,6 @@ #include "Program.hpp" -#include "glm.hpp" - namespace blobs { namespace graphics { @@ -30,8 +28,11 @@ public: void Activate() noexcept; void SetM(const glm::mat4 &m) noexcept; + void SetV(const glm::mat4 &v) noexcept; void SetVP(const glm::mat4 &v, const glm::mat4 &p) noexcept; void SetMVP(const glm::mat4 &m, const glm::mat4 &v, const glm::mat4 &p) noexcept; + void SetBaseColor(const glm::vec3 &) noexcept; + void SetHighlightColor(const glm::vec4 &) noexcept; void SetTexture(ArrayTexture &) noexcept; void SetLight(int n, const glm::vec3 &pos, const glm::vec3 &color, float strength) noexcept; void SetNumLights(int n) noexcept; @@ -56,8 +57,10 @@ private: GLuint m_handle; GLuint mv_handle; GLuint mvp_handle; - GLuint sampler_handle; + GLuint base_color_handle; + GLuint highlight_color_handle; + GLuint sampler_handle; GLuint num_lights_handle; GLuint light_handle[MAX_LIGHTS * 3];