Added demo handling and easyloggingpp
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include "scene_tree.h"
|
||||
#include <string>
|
||||
#include "shader_constants.h"
|
||||
|
||||
BEGIN_NAMESPACE
|
||||
|
||||
class shader;
|
||||
|
||||
class material;
|
||||
|
||||
class texture;
|
||||
|
||||
class scene_renderer {
|
||||
public:
|
||||
|
||||
scene_renderer();
|
||||
|
||||
void render(const scene_tree &scene, const std::string &cameraName);
|
||||
|
||||
private:
|
||||
void attach_depth_texture(texture &text) const;
|
||||
void render_shadow_map(const scene_tree &scene, light_node &light);
|
||||
|
||||
std::shared_ptr<shader> first_pass_shadow_shader;
|
||||
std::shared_ptr<material> first_pass_shadow_material;
|
||||
|
||||
std::shared_ptr<shader> second_pass_shadow_shader;
|
||||
std::shared_ptr<material> second_pass_shadow_material;
|
||||
|
||||
shader_constants shader_consts;
|
||||
GLuint fbo_id;
|
||||
};
|
||||
|
||||
END_NAMESPACE
|
||||
Reference in New Issue
Block a user