From f00bae7cfca3167f4c361cab74dfa28574c85dc3 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 30 Jul 2024 23:56:20 +0300 Subject: [PATCH] use alpha test instead of blend for 3d --- src/rendering.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rendering.c b/src/rendering.c index ef1d96e..1148d29 100644 --- a/src/rendering.c +++ b/src/rendering.c @@ -114,10 +114,10 @@ static void render_space(void) { glDepthMask(GL_TRUE); glDepthFunc(GL_LESS); glDepthRange(0, 1); - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glDisable(GL_BLEND); + glEnable(GL_ALPHA_TEST); /* TODO: infer its usage */ + glAlphaFunc(GL_EQUAL, 1.0f); glEnable(GL_TEXTURE_2D); - glDisable(GL_ALPHA_TEST); glActiveTexture(GL_TEXTURE0); /* solid white, no modulation */