X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fshadowmap.h;h=e142fc8cafdd56023459035f53d48e73205c997b;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hp=fe36fca0e5bac9e6e7eff35f3a33065d9fb3d85e;hpb=c3b339da673601c283abf9222b5e8f66ba80a688;p=libs%2Fgl.git diff --git a/source/shadowmap.h b/source/shadowmap.h index fe36fca0..e142fc8c 100644 --- a/source/shadowmap.h +++ b/source/shadowmap.h @@ -27,12 +27,15 @@ private: Framebuffer fbo; Matrix shadow_matrix; Texture2D depth_buf; + RefPtr sampler; Vector3 target; float radius; float depth_bias; mutable ProgramData shdata; bool rendered; + static WeakPtr shadow_sampler; + public: ShadowMap(unsigned, Renderable &, const Light &);