From 8dabc2d1a081af2750389f8c855ffb2d13c20503 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 12 Jan 2021 02:17:59 +0100 Subject: [PATCH] Enable tranparency in the context --- inferno/src/inferno/render/context.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inferno/src/inferno/render/context.cpp b/inferno/src/inferno/render/context.cpp index 1ecbf73..0beefde 100644 --- a/inferno/src/inferno/render/context.cpp +++ b/inferno/src/inferno/render/context.cpp @@ -50,6 +50,10 @@ namespace Inferno { // Enable z-buffer / depth buffer glEnable(GL_DEPTH_TEST); + + // Enable transparency + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glEnable(GL_BLEND); } void Context::update()