+ | Define system + denoising back

This commit is contained in:
TheRedShip
2025-02-13 23:18:04 +01:00
parent 9b8da6ebd8
commit 4ddacdaadd
14 changed files with 376 additions and 319 deletions

View File

@ -21,15 +21,19 @@ class Shader
Shader(GLenum type, const std::string &file_path);
~Shader(void);
void compile(void);
void reload();
void setDefine(const std::string &name, const std::string &value);
GLuint getShader(void) const;
private:
void checkCompileErrors();
//
std::map<std::string, std::string> _defines;
GLenum _type;
GLuint _shader_id;
std::string _file_path;

View File

@ -39,6 +39,8 @@ class ShaderProgram
void set_textures(std::map<std::string, std::vector<GLuint>> texture_ids);
void set_define(const std::string &name, const std::string &value);
GLuint getProgram(void) const;
private:

View File

@ -16,6 +16,7 @@
# include "RT.hpp"
class Scene;
class ShaderProgram;
class Window
{
@ -35,7 +36,7 @@ class Window
static void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods);
void imGuiNewFrame();
void imGuiRender();
void imGuiRender(ShaderProgram &raytracing_program);
GLFWwindow *getWindow(void) const;
float getFps(void) const;