X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Flight.h;h=b20ebae44d3fe714f0a7bc4365f160bf3ae9b7e9;hb=c8520aa336e92f2eaf9a38c3430c608520a90324;hp=606ec67325812d535d305c5756ca82bcfb439528;hpb=adc26a2e141a2853b6c5025130c46a46cece4b84;p=libs%2Fgl.git diff --git a/source/materials/light.h b/source/materials/light.h index 606ec673..b20ebae4 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -48,11 +48,12 @@ public: }; protected: - Color color; - unsigned generation; + Color color = { 1.0f }; + unsigned generation = 0; + Light() = default; public: - Light(); + virtual ~Light() = default; /** Sets the color of the Light. */ void set_color(const Color &);