From: divverent Date: Tue, 6 Sep 2011 19:27:58 +0000 (+0000) Subject: blendfunc addalpha X-Git-Tag: xonotic-v0.6.0~163^2~222 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5aab5bb61a2c4326c191ca7a2f23b20aae0ea5e1;p=xonotic%2Fdarkplaces.git blendfunc addalpha shorthand for GL_SRC_ALPHA GL_ONE git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11330 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 9c5ca203..47b4c58f 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1790,6 +1790,11 @@ void Mod_LoadQ3Shaders(void) layer->blendfunc[0] = GL_ONE; layer->blendfunc[1] = GL_ONE; } + else if (!strcasecmp(parameter[1], "addalpha")) + { + layer->blendfunc[0] = GL_SRC_ALPHA; + layer->blendfunc[1] = GL_ONE; + } else if (!strcasecmp(parameter[1], "filter")) { layer->blendfunc[0] = GL_DST_COLOR;