X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Funlitmaterial.h;h=f4f1086d32c68acd4aca0b557dd4d68b03551aa3;hb=6d2e2a0bb28496a8c25b441009bdd2a1a1e72d81;hp=4481d5f988f446d446c048303666803c0af44e46;hpb=ae45c0397e2cb8f0a01f2f31d01c95ff3870271e;p=libs%2Fgl.git diff --git a/source/materials/unlitmaterial.h b/source/materials/unlitmaterial.h index 4481d5f9..f4f1086d 100644 --- a/source/materials/unlitmaterial.h +++ b/source/materials/unlitmaterial.h @@ -6,6 +6,10 @@ namespace Msp { namespace GL { +/** +A material which performs no lighting calculations at all. Useful for HUD +graphics. +*/ class UnlitMaterial: public Material { public: @@ -24,9 +28,9 @@ public: }; private: - const Texture *texture; + const Texture *texture = 0; Color color; - bool vertex_color; + bool vertex_color = false; static const Tag texture_tags[];