From 8f23c181feb02ac9ec8574844f37c322c8000574 Mon Sep 17 00:00:00 2001 From: Anselme Date: Sat, 10 Dec 2016 15:21:33 +0100 Subject: [PATCH] added missing setters --- src/light.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/light.h b/src/light.h index 0fd93b8..bbcbb65 100644 --- a/src/light.h +++ b/src/light.h @@ -36,6 +36,7 @@ public: virtual LightType getType() = 0; + void setColor(const glm::vec3 &color) { m_color = color; } glm::vec3 getColor() { return m_color; } virtual bool isShadowCaster() { return false; } @@ -62,6 +63,7 @@ class DirectionnalLight : public Light public: DirectionnalLight(glm::vec3 dir = glm::vec3(0, -1, 0), glm::vec3 lightColor = glm::vec3(1)); + void setDir(const glm::vec3 &dir) { m_direction = dir; } glm::vec3 getDir() { return m_direction; } virtual LightType getType() { return DIRECTIONNAL; }