X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.h;fp=source%2Feffects%2Fshadowmap.h;h=0acb1b64657bc2cc0c5d0837717883fb0bd1b77f;hb=57588abbefc8f0162332ac2310c69b62a14b2404;hp=cf2dec01bc69e90afda1255dd63918fd5b8d5ebc;hpb=b733c793381e78637f52c7f77cc4f69e914918e1;p=libs%2Fgl.git diff --git a/source/effects/shadowmap.h b/source/effects/shadowmap.h index cf2dec01..0acb1b64 100644 --- a/source/effects/shadowmap.h +++ b/source/effects/shadowmap.h @@ -14,6 +14,7 @@ namespace GL { class DirectionalLight; class Light; +class PointLight; /** Creates shadows on a renderable through a shadow map texture. In the setup @@ -27,7 +28,8 @@ private: enum ShadowType { NONE, - DIRECTIONAL + DIRECTIONAL, + TETRAHEDRON }; struct ShadowedLight @@ -45,6 +47,7 @@ private: unsigned light_index; unsigned face; Camera camera; + Matrix face_matrix; }; unsigned width; @@ -69,6 +72,7 @@ public: ShadowMap(unsigned, unsigned, Renderable &, const Lighting &); void add_light(const DirectionalLight &, unsigned, Renderable &); + void add_light(const PointLight &, unsigned, Renderable &); private: void add_light(const Light &, unsigned, ShadowType, Renderable &);