Added demo handling and easyloggingpp

This commit is contained in:
2022-04-24 07:15:30 +03:00
parent 674191238f
commit bd57437953
30 changed files with 1617 additions and 162 deletions
+36
View File
@@ -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