Calculate the focus factor z in the post shader

This commit is contained in:
2019-04-01 13:05:12 +02:00
parent f275aef0b0
commit 8a48b59c0b
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -341,9 +341,9 @@ void renderFrame(GLFWwindow* window, int windowWidth, int windowHeight) {
glDepthMask(GL_FALSE); // read only
for (NodeDistShader a : transparent_nodes)
renderNode(a.node, a.s, nullptr, false);
renderNode(hudNode, nullptr); // rootNode defined in scene.hpp
glDepthMask(GL_TRUE); // read write
renderNode(hudNode, nullptr); // rootNode defined in scene.hpp
// render framebuffer to window
glBindFramebuffer(GL_FRAMEBUFFER, 0);