-#include <cmath>
-#include <cstdlib>
-#include "camera.h"
#include "light.h"
#include "renderer.h"
#include "resources.h"
-#include "scene.h"
#include "shadowmap.h"
using namespace std;
fbo.set_format((DEPTH_ATTACHMENT,DEPTH_COMPONENT32F));
fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
- depth_test.enabled = true;
- depth_test.compare = LEQUAL;
-
set_darkness(1.0f);
shdata.uniform("shd_world_matrix", Matrix());
}
Renderer::Push push(renderer);
renderer.set_framebuffer(&fbo);
renderer.set_camera(shadow_camera);
- renderer.set_depth_test(&depth_test);
renderer.render(shadow_caster);
}