mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Define system + denoising back
This commit is contained in:
@ -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;
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user