X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.cpp;h=bfb053421440d98bdd3164a6e16d092e1479aa47;hb=f82ef71;hp=a0627faabf14834fd959ad1abe043dbb79feef18;hpb=a313d4a1050815d987f855cafaea046dba158625;p=libs%2Fgl.git diff --git a/source/effects/shadowmap.cpp b/source/effects/shadowmap.cpp index a0627faa..bfb05342 100644 --- a/source/effects/shadowmap.cpp +++ b/source/effects/shadowmap.cpp @@ -17,11 +17,7 @@ ShadowMap::ShadowMap(unsigned w, unsigned h, Renderable &r, const Lighting *l, R height(h), lighting(l), shadow_caster(c), - sampler(Resources::get_global().get("_linear_clamp_shadow.samp")), - radius(1), - depth_bias(4), - darkness(1.0f), - rendered(false) + sampler(Resources::get_global().get("_linear_clamp_shadow.samp")) { depth_buf.storage(DEPTH_COMPONENT32F, width, height, 1); fbo.set_format((DEPTH_ATTACHMENT,DEPTH_COMPONENT32F)); @@ -198,7 +194,7 @@ void ShadowMap::set_debug_name(const string &name) fbo.set_debug_name(name+" [FBO]"); for(unsigned i=0; i