X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fopengl.c;h=e9d4a7e3a0a6d44ea35d6f361e4b8ec1f4db4f8d;hp=43fd022864f98d7de882d36048f18f886898fb9b;hb=f230908a4780fd954772bbc3d17658aba86baea8;hpb=cc88970c4a849c32ca7555e318092266529233c8 diff --git a/src/opengl.c b/src/opengl.c index 43fd022..e9d4a7e 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -54,6 +54,12 @@ static gboolean configure_start(GtkWidget *da, GdkEventConfigure *event, gpointe glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glClearColor(0.8f, 0.8f, 1.0f, 0.0f); + /* Tessellation, "finding intersecting triangles" */ + /* http://research.microsoft.com/pubs/70307/tr-2006-81.pdf */ + /* http://www.opengl.org/wiki/Alpha_Blending */ + glAlphaFunc(GL_GREATER,0.1); + glEnable(GL_ALPHA_TEST); + /* Depth test */ glClearDepth(1.0); glDepthFunc(GL_LEQUAL);