mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Denoising on light texture
This commit is contained in:
14
srcs/RT.cpp
14
srcs/RT.cpp
@ -37,7 +37,15 @@ int main(int argc, char **argv)
|
||||
GLuint VAO;
|
||||
setupScreenTriangle(&VAO);
|
||||
|
||||
std::vector<GLuint> textures = generateTextures(5);
|
||||
std::vector<GLuint> textures = generateTextures(8);
|
||||
//0 output
|
||||
//1 output_accumulation
|
||||
//2 denoising
|
||||
//3 normal
|
||||
//4 position
|
||||
//5 light
|
||||
//6 light_accum
|
||||
//7 color
|
||||
|
||||
ShaderProgram raytracing_program;
|
||||
Shader compute = Shader(GL_COMPUTE_SHADER, "shaders/compute.glsl");
|
||||
@ -99,8 +107,8 @@ int main(int argc, char **argv)
|
||||
window.display();
|
||||
window.pollEvents();
|
||||
|
||||
glClearTexImage(textures[3], 0, GL_RGBA, GL_FLOAT, nullptr);
|
||||
glClearTexImage(textures[4], 0, GL_RGBA, GL_FLOAT, nullptr);
|
||||
// glClearTexImage(textures[3], 0, GL_RGBA, GL_FLOAT, nullptr);
|
||||
// glClearTexImage(textures[4], 0, GL_RGBA, GL_FLOAT, nullptr);
|
||||
}
|
||||
|
||||
ImGui_ImplOpenGL3_Shutdown();
|
||||
|
Reference in New Issue
Block a user