]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/CreatureSkin.hpp
varying material and schlick/fresnel
[blobs.git] / src / graphics / CreatureSkin.hpp
index c24a746062173b9ec5351da349e3086acede7a2f..1dce8b532390ad0753262a42e2d0f1cb2a7edfff 100644 (file)
@@ -31,7 +31,10 @@ public:
        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 SetAmbient(const glm::vec3 &) noexcept;
        void SetLight(int n, const glm::vec3 &pos, const glm::vec3 &color, float strength) noexcept;
        void SetNumLights(int n) noexcept;
 
@@ -55,8 +58,11 @@ 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 ambient_handle;
        GLuint num_lights_handle;
        GLuint light_handle[MAX_LIGHTS * 3];