]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/shadowmap.h
Use default member initializers for simple types
[libs/gl.git] / source / effects / shadowmap.h
index cb6229935a81806dc3bad9af00b72bed47e739b7..611f56f51040a2204055e29f37d0e67a68d48b7c 100644 (file)
@@ -41,11 +41,11 @@ private:
        Texture2D depth_buf;
        const Sampler &sampler;
        Vector3 target;
-       float radius;
-       float depth_bias;
-       float darkness;
+       float radius = 1.0f;
+       float depth_bias = 4.0f;
+       float darkness = 1.0f;
        ProgramData shdata;
-       bool rendered;
+       bool rendered = false;
        std::string debug_name;
 
        ShadowMap(unsigned, unsigned, Renderable &, const Lighting *, Renderable &);