]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
introduce a lightmap scale for models, and use this for the sRGB fallback instead...
[xonotic/darkplaces.git] / model_shared.c
index 2afe928b13d5daee77c506d932ce7f34550f1ea3..92cf45a5bf30d49f81e4b2c41acb10ddbee65ce9 100644 (file)
@@ -467,6 +467,9 @@ dp_model_t *Mod_LoadModel(dp_model_t *mod, qboolean crash, qboolean checkdisk)
        // errors can prevent the corresponding mod->loaded = true;
        mod->loaded = false;
 
+       // default lightmap scale
+       mod->lightmapscale = 1;
+
        // default model radius and bounding box (mainly for missing models)
        mod->radius = 16;
        VectorSet(mod->normalmins, -mod->radius, -mod->radius, -mod->radius);