From a214b4f8977a4b115710b5c9d152b392ac8e24f7 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sat, 23 Oct 2021 15:13:20 -0400 Subject: (mkosarek) Cube to better understand the bounds --- shared_cpp/Renderer3d.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared_cpp') 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); -- cgit v1.2.1