]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/shadowmap.cpp
Change various generated texture names to use the unified extension
[libs/gl.git] / source / effects / shadowmap.cpp
index a0627faabf14834fd959ad1abe043dbb79feef18..bfb053421440d98bdd3164a6e16d092e1479aa47 100644 (file)
@@ -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<Sampler>("_linear_clamp_shadow.samp")),
-       radius(1),
-       depth_bias(4),
-       darkness(1.0f),
-       rendered(false)
+       sampler(Resources::get_global().get<Sampler>("_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<lights.size(); ++i)
                lights[i].shadow_camera.set_debug_name(format("%s/light%d.camera", name, i));
-       depth_buf.set_debug_name(name+"/depth.tex2d");
+       depth_buf.set_debug_name(name+"/depth.tex");
        shdata.set_debug_name(name+" [UBO]");
 #else
        (void)name;