X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.h;h=611f56f51040a2204055e29f37d0e67a68d48b7c;hp=cb6229935a81806dc3bad9af00b72bed47e739b7;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/effects/shadowmap.h b/source/effects/shadowmap.h index cb622993..611f56f5 100644 --- a/source/effects/shadowmap.h +++ b/source/effects/shadowmap.h @@ -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 &);