X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FPlanetSurface.hpp;h=94e201ece7e63760a890d4e50b39f2c30f1b49a3;hb=refs%2Fheads%2Fmaster;hp=a5f177da14e3a81a8b91deda99f2762ca1978040;hpb=8f6530c75730f901efd6708e4fde7e68a178adf1;p=blobs.git diff --git a/src/graphics/PlanetSurface.hpp b/src/graphics/PlanetSurface.hpp index a5f177d..94e201e 100644 --- a/src/graphics/PlanetSurface.hpp +++ b/src/graphics/PlanetSurface.hpp @@ -28,10 +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 SetNormal(const glm::vec3 &) 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; @@ -56,7 +57,7 @@ private: GLuint mv_handle; GLuint mvp_handle; GLuint sampler_handle; - GLuint normal_handle; + GLuint ambient_handle; GLuint num_lights_handle; GLuint light_handle[MAX_LIGHTS * 3];