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