]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/SunSurface.hpp
spherical sun
[blobs.git] / src / graphics / SunSurface.hpp
index b5a056be3fe14dec0e69be7bc03d02ccbe207477..55c42dd966abcb293508a602925846c4e6c7197f 100644 (file)
@@ -4,10 +4,6 @@
 #include "Program.hpp"
 #include "SimpleVAO.hpp"
 
-#include "glm.hpp"
-
-#include <cstdint>
-
 
 namespace blobs {
 namespace graphics {
@@ -30,6 +26,7 @@ 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 SetLight(const glm::vec3 &color, float strength) noexcept;
@@ -46,7 +43,7 @@ private:
        struct Attributes {
                glm::vec3 position;
        };
-       SimpleVAO<Attributes, std::uint8_t> vao;
+       SimpleVAO<Attributes, unsigned short> vao;
        Program prog;
 
        glm::mat4 m;