]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.c
Offsetmapping: new "Bias" parameter that sets a custom "null point" instead of always...
[xonotic/darkplaces.git] / model_sprite.c
index 4dc97dfb97c84ce4b16e8bab4cc1682b2e504d06..9fa98ccaf2621dd10884ff8faaf82afd35255645 100644 (file)
@@ -63,6 +63,7 @@ static void Mod_SpriteSetupTexture(texture_t *texture, skinframe_t *skinframe, q
                skinframe = R_SkinFrame_LoadMissing();
        texture->offsetmapping = OFFSETMAPPING_OFF;
        texture->offsetscale = 1;
+       texture->offsetbias = 0;
        texture->specularscalemod = 1;
        texture->specularpowermod = 1;
        texture->basematerialflags = MATERIALFLAG_WALL;