summaryrefslogtreecommitdiff
path: root/shared_cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-10-23 15:13:20 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-10-23 15:13:20 -0400
commita214b4f8977a4b115710b5c9d152b392ac8e24f7 (patch)
tree2453ba5b5f6d852fabec6294bb6fe34992879cad /shared_cpp
parenta003378e602107d421b819ac629493b5c6444762 (diff)
(mkosarek) Cube to better understand the bounds
Diffstat (limited to 'shared_cpp')
-rw-r--r--shared_cpp/Renderer3d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared_cpp/Renderer3d.cpp b/shared_cpp/Renderer3d.cpp
index d6be3cb..ac2a0c5 100644
--- a/shared_cpp/Renderer3d.cpp
+++ b/shared_cpp/Renderer3d.cpp
@@ -62,6 +62,8 @@ void Renderer3d::render(Camera3d* camera) {
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glDepthMask(GL_TRUE);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ glEnable(GL_BLEND);
glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
glClearDepth(1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);