summaryrefslogtreecommitdiff
path: root/ui/sceneRenderer.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-12 11:38:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-14 23:46:14 +0000
commit82bfbf1f459d540b0e204bb873ca5786997b24da (patch)
tree3b409db10a77d10f52a3ce45f135a423d8ff2da1 /ui/sceneRenderer.cpp
parentFix type of SceneShader (diff)
downloadilt-82bfbf1f459d540b0e204bb873ca5786997b24da.tar.bz2
ilt-82bfbf1f459d540b0e204bb873ca5786997b24da.tar.xz
ilt-82bfbf1f459d540b0e204bb873ca5786997b24da.zip
Refactor for per window context and more setup to the right places
Diffstat (limited to 'ui/sceneRenderer.cpp')
-rw-r--r--ui/sceneRenderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/sceneRenderer.cpp b/ui/sceneRenderer.cpp
index 6e75dec..5ef0379 100644
--- a/ui/sceneRenderer.cpp
+++ b/ui/sceneRenderer.cpp
@@ -51,6 +51,9 @@ SceneRenderer::render(std::function<void()> content) const
{
// Geometry pass
glEnable(GL_BLEND);
+ glEnable(GL_CULL_FACE);
+ glCullFace(GL_BACK);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_DEPTH_TEST);
glBindFramebuffer(GL_FRAMEBUFFER, gBuffer);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);