]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
blendfunc addalpha
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 19:27:58 +0000 (19:27 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 19:27:58 +0000 (19:27 +0000)
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

index 9c5ca20392571c353f06133922d3735ac7c43b1b..47b4c58fabedfde42ed40f62707e0f17c9a13598 100644 (file)
@@ -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;