]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
Support a separate texture matrix for the background layer.
[xonotic/darkplaces.git] / model_shared.c
index 60a59cfaf267bb296fdd78c47557a20fb746a020..94c3b0150d5d0d679614c604bf8b0ff95d9a9ee9 100644 (file)
@@ -2012,6 +2012,9 @@ nothing                GL_ZERO GL_ONE
                if (shader->backgroundlayer >= 0)
                {
                        q3shaderinfo_layer_t* backgroundlayer = shader->layers + shader->backgroundlayer;
+                       // copy over one secondarylayer parameter
+                       memcpy(texture->backgroundtcmods, backgroundlayer->tcmods, sizeof(texture->backgroundtcmods));
+                       // load the textures
                        texture->backgroundnumskinframes = backgroundlayer->numframes;
                        texture->backgroundskinframerate = backgroundlayer->framerate;
                        for (j = 0;j < backgroundlayer->numframes;j++)