X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.cpp;h=1b5f531b913c2d339f8e1aee3830775d576aed58;hp=49dfa36de0bb636d101900dc78e47ca42f03f723;hb=adc26a2e141a2853b6c5025130c46a46cece4b84;hpb=e6e6f0fe81a2f92985e65ae0de708974194d81a3 diff --git a/source/effects/shadowmap.cpp b/source/effects/shadowmap.cpp index 49dfa36d..1b5f531b 100644 --- a/source/effects/shadowmap.cpp +++ b/source/effects/shadowmap.cpp @@ -1,6 +1,6 @@ #include +#include "directionallight.h" #include "error.h" -#include "light.h" #include "lighting.h" #include "renderer.h" #include "resources.h" @@ -38,7 +38,7 @@ ShadowMap::ShadowMap(unsigned w, unsigned h, Renderable &r, const Lighting *l, R } } -ShadowMap::ShadowMap(unsigned s, Renderable &r, const Light &l, Renderable &c): +ShadowMap::ShadowMap(unsigned s, Renderable &r, const DirectionalLight &l, Renderable &c): ShadowMap(s, s, r, 0, c) { add_light(l, s); @@ -48,7 +48,7 @@ ShadowMap::ShadowMap(unsigned w, unsigned h, Renderable &r, const Lighting &l, R ShadowMap(w, h, r, &l, c) { } -void ShadowMap::add_light(const Light &light, unsigned s) +void ShadowMap::add_light(const DirectionalLight &light, unsigned s) { if(!lighting && !lights.empty()) throw invalid_operation("ShadowMap::add_light");