]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
added cast_half, cast_half2, cast_half3, cast_half4 macros to avoid
[xonotic/darkplaces.git] / model_shared.c
index 5257863db4e9870e369b5d6035b8f0c538951087..0fc772824c4a23e4da119883ab14376c9a31c09c 100644 (file)
@@ -2155,6 +2155,10 @@ void Mod_LoadQ3Shaders(void)
                                {
                                        shader.specularpowermod = atof(parameter[1]);
                                }
+                               else if (!strcasecmp(parameter[0], "dprtlightambient") && numparameters >= 2)
+                               {
+                                       shader.rtlightambient = atof(parameter[1]);
+                               }
                                else if (!strcasecmp(parameter[0], "dpoffsetmapping") && numparameters >= 3)
                                {
                                        if (!strcasecmp(parameter[1], "disable") || !strcasecmp(parameter[1], "none") || !strcasecmp(parameter[1], "off"))
@@ -2437,6 +2441,7 @@ nothing                GL_ZERO GL_ONE
                texture->offsetscale = shader->offsetscale;
                texture->specularscalemod = shader->specularscalemod;
                texture->specularpowermod = shader->specularpowermod;
+               texture->rtlightambient = shader->rtlightambient;
                if (shader->dpreflectcube[0])
                        texture->reflectcubetexture = R_GetCubemap(shader->dpreflectcube);
 
@@ -2525,6 +2530,7 @@ nothing                GL_ZERO GL_ONE
                if(cls.state == ca_dedicated)
                {
                        texture->skinframes[0] = NULL;
+                       success = false;
                }
                else
                {