]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/PlanetSurface.hpp
spherical planets
[blobs.git] / src / graphics / PlanetSurface.hpp
index 8e98875851d70c0d859b0386aaae604396bab070..27bd2bc616f703a3c6823a854f583a25bfdcdd07 100644 (file)
@@ -3,8 +3,6 @@
 
 #include "Program.hpp"
 
-#include "glm.hpp"
-
 
 namespace blobs {
 namespace graphics {
@@ -29,8 +27,10 @@ public:
 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 SetNormal(const glm::vec3 &) 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,7 +56,6 @@ private:
        GLuint mv_handle;
        GLuint mvp_handle;
        GLuint sampler_handle;
-       GLuint normal_handle;
 
        GLuint num_lights_handle;
        GLuint light_handle[MAX_LIGHTS * 3];