X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fgraphics%2FPlanetSurface.hpp;fp=src%2Fgraphics%2FPlanetSurface.hpp;h=94e201ece7e63760a890d4e50b39f2c30f1b49a3;hp=27bd2bc616f703a3c6823a854f583a25bfdcdd07;hb=0734615e546059679f1827c35fe1928ffea2fc56;hpb=cf31daa35ac163986158b6f95df06fd7b43f6e79 diff --git a/src/graphics/PlanetSurface.hpp b/src/graphics/PlanetSurface.hpp index 27bd2bc..94e201e 100644 --- a/src/graphics/PlanetSurface.hpp +++ b/src/graphics/PlanetSurface.hpp @@ -32,6 +32,7 @@ public: 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 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,6 +57,7 @@ private: GLuint mv_handle; GLuint mvp_handle; GLuint sampler_handle; + GLuint ambient_handle; GLuint num_lights_handle; GLuint light_handle[MAX_LIGHTS * 3];