#include <msp/strings/format.h>
+#include "directionallight.h"
#include "error.h"
-#include "light.h"
#include "lighting.h"
#include "renderer.h"
#include "resources.h"
}
}
-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);
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");