X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.h;h=5d8bf5095287423827e71f32b988a22811d1777e;hp=d7b4eef970160f34503bb51ed23096991a4035f7;hb=0d765be40336decc966932e0143fe9496f3eab4b;hpb=7db40551e9197142b0b6cb7fd883b325684bb8c2 diff --git a/source/effects/shadowmap.h b/source/effects/shadowmap.h index d7b4eef9..5d8bf509 100644 --- a/source/effects/shadowmap.h +++ b/source/effects/shadowmap.h @@ -25,6 +25,7 @@ class ShadowMap: public Effect private: unsigned size; const Light &light; + Renderable &shadow_caster; Framebuffer fbo; Camera shadow_camera; Matrix shadow_matrix; @@ -37,8 +38,12 @@ private: bool rendered; public: - ShadowMap(Resources &, unsigned, Renderable &, const Light &); + ShadowMap(Resources &, unsigned, Renderable &, const Light &, Renderable &); + DEPRECATED ShadowMap(Resources &, unsigned, Renderable &, const Light &); +private: + void init(unsigned); +public: /** Sets the ShadowMap target point and radius. The transformation matrix is computed so that a sphere with the specified parameters will be completely covered by the ShadowMap. */