X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.h;h=611f56f51040a2204055e29f37d0e67a68d48b7c;hb=4d276c9b986b111611b8396f94dae56dbe736387;hp=cb6229935a81806dc3bad9af00b72bed47e739b7;hpb=adc26a2e141a2853b6c5025130c46a46cece4b84;p=libs%2Fgl.git 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 &);