diff --git a/main/Light.cc b/main/Light.cc index 6fc6b06..c1b645c 100644 --- a/main/Light.cc +++ b/main/Light.cc @@ -5,5 +5,6 @@ Light::Light(const Vector & position, const Color & color) { m_position = position; + m_color = color; } diff --git a/main/Light.h b/main/Light.h index 1f8b1ee..6096e8b 100644 --- a/main/Light.h +++ b/main/Light.h @@ -10,9 +10,11 @@ class Light public: Light(const Vector & position, const Color & color = Color::white); const Vector & getPosition() const { return m_position; } + const Color & getColor() const { return m_color; } protected: Vector m_position; + Color m_color; }; #endif