diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-20 22:01:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-20 22:01:57 +0400 |
commit | 960eaed6cd42a58785de0666ac219ef9bf7238b5 (patch) | |
tree | 76843efe82d3d839ff16840d42a7a7f85037f4d5 /source/blender/src/drawmesh.c | |
parent | bfbb35004099f7c6f204ab24a7a2bf58f5673e73 (diff) |
added an option to adjust the alpha clipping value in the oprnGL preferenes. in some cases you might
want to use 0.5 to see through more of the texture. (less halo's with clipmaps), defailt is 0.0 so it
will only clip 0 alpha.
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r-- | source/blender/src/drawmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c index 6fbd0c71997..36bad20d9f9 100644 --- a/source/blender/src/drawmesh.c +++ b/source/blender/src/drawmesh.c @@ -242,7 +242,7 @@ int set_tpage(MTFace *tface) /* added after 2.45 to clip alpha */ glEnable ( GL_ALPHA_TEST ); - glAlphaFunc ( GL_GREATER, 0.001 ); + glAlphaFunc ( GL_GREATER, U.glalphaclip ); /* glBlendEquationEXT(GL_FUNC_ADD_EXT); */ @@ -960,7 +960,7 @@ static void draw_textured_begin(Object *ob) Gtexdraw.istex = istex; memcpy(Gtexdraw.obcol, obcol, sizeof(obcol)); set_draw_settings_cached(1, 0, 0, Gtexdraw.islit, 0, 0, 0); - + glDisable ( GL_ALPHA_TEST ); glShadeModel(GL_SMOOTH); } |