X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.h;h=cb6229935a81806dc3bad9af00b72bed47e739b7;hp=c3c7bd55a7f53430937cce8faf6f6955b220f61d;hb=adc26a2e141a2853b6c5025130c46a46cece4b84;hpb=e6e6f0fe81a2f92985e65ae0de708974194d81a3 diff --git a/source/effects/shadowmap.h b/source/effects/shadowmap.h index c3c7bd55..cb622993 100644 --- a/source/effects/shadowmap.h +++ b/source/effects/shadowmap.h @@ -12,6 +12,7 @@ namespace Msp { namespace GL { +class DirectionalLight; class Light; /** @@ -49,10 +50,10 @@ private: ShadowMap(unsigned, unsigned, Renderable &, const Lighting *, Renderable &); public: - ShadowMap(unsigned, Renderable &, const Light &, Renderable &); + ShadowMap(unsigned, Renderable &, const DirectionalLight &, Renderable &); ShadowMap(unsigned, unsigned, Renderable &, const Lighting &, Renderable &); - void add_light(const Light &, unsigned); + void add_light(const DirectionalLight &, unsigned); /** Sets the ShadowMap target point and radius. The transformation matrix is computed so that a sphere with the specified parameters will be completely