X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fshadowmap.cpp;h=c4dd07b03dbdb288fa55bda158dc305386813d70;hb=759612fd66034135c13134ffb8199514204b9684;hp=6f62870be5c73b7f8a5420ac72851f3b05ae4676;hpb=bd141418a0712feeb64bcaff7f57e29913b0317b;p=libs%2Fgl.git diff --git a/source/shadowmap.cpp b/source/shadowmap.cpp index 6f62870b..c4dd07b0 100644 --- a/source/shadowmap.cpp +++ b/source/shadowmap.cpp @@ -29,6 +29,7 @@ ShadowMap::ShadowMap(unsigned s, const Renderable &r, const Light &l): depth_buf.set_wrap(CLAMP_TO_EDGE); depth_buf.storage(DEPTH_COMPONENT, size, size); fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0); + fbo.require_complete(); set_darkness(0.7); set_texture_unit(3);