diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-19 15:04:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-23 18:38:43 +0000 |
commit | ffdaa93edf5eeaf9db7dc17e51554a77dd9d596d (patch) | |
tree | 5ec8af60e0761417d4f80a012679e3071de59888 /ui/window.cpp | |
parent | Shared context, persist main window in test, send test for upcoming pointlight (diff) | |
download | ilt-ffdaa93edf5eeaf9db7dc17e51554a77dd9d596d.tar.bz2 ilt-ffdaa93edf5eeaf9db7dc17e51554a77dd9d596d.tar.xz ilt-ffdaa93edf5eeaf9db7dc17e51554a77dd9d596d.zip |
Separate out the illumation of the scene
Diffstat (limited to 'ui/window.cpp')
-rw-r--r-- | ui/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 {});
}
|