From 5aab5bb61a2c4326c191ca7a2f23b20aae0ea5e1 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 6 Sep 2011 19:27:58 +0000 Subject: [PATCH] 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 --- model_shared.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2