use alpha test instead of blend for 3d
This commit is contained in:
parent
8a66bc43e4
commit
f00bae7cfc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user