From ffdaa93edf5eeaf9db7dc17e51554a77dd9d596d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 19 Nov 2022 15:04:30 +0000 Subject: Separate out the illumation of the scene --- ui/window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/window.cpp') diff --git a/ui/window.cpp b/ui/window.cpp index 51aa827..5930292 100644 --- a/ui/window.cpp +++ b/ui/window.cpp @@ -77,6 +77,7 @@ void Window::render() const { glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_DEPTH_TEST); uiComponents.apply(&UIComponent::render, uiShader, UIComponent::Position {}); } -- cgit v1.2.3