Small issue fix, Added post-processing fx

This commit is contained in:
2022-10-16 18:58:21 +02:00
parent d8e87b4787
commit db448390ae
2 changed files with 74 additions and 4 deletions

View File

@ -265,16 +265,21 @@ while(!glfwWindowShouldClose(window))
framebuffer.Bind();
drawScene_pass(shader, backpack);
outline_pass(outlineShader, backpack);
//outline_pass(outlineShader, backpack);
// Reset stencil
DrawToScreen(ScreenVAO, ColourBuffer->id, framebufferShader);
// Reset stencil
glStencilMask(0xFF);
glStencilFunc(GL_ALWAYS, 1, 0xFF);
glEnable(GL_DEPTH_TEST);
DrawToScreen(ScreenVAO, ColourBuffer->id, framebufferShader);
glfwSwapBuffers(window);
glfwPollEvents();
}