use alpha test instead of blend for 3d

This commit is contained in:
veclav talica 2024-07-30 23:56:20 +03:00
parent 8a66bc43e4
commit f00bae7cfc

View File

@ -114,10 +114,10 @@ static void render_space(void) {
glDepthMask(GL_TRUE); glDepthMask(GL_TRUE);
glDepthFunc(GL_LESS); glDepthFunc(GL_LESS);
glDepthRange(0, 1); glDepthRange(0, 1);
glEnable(GL_BLEND); glDisable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_ALPHA_TEST); /* TODO: infer its usage */
glAlphaFunc(GL_EQUAL, 1.0f);
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glDisable(GL_ALPHA_TEST);
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
/* solid white, no modulation */ /* solid white, no modulation */