git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9978
d7cf8633-e32d-0410-b094-
e92efae38249
texture->currentmaterialflags = texture->basematerialflags;
texture->specularscalemod = 1;
texture->specularpowermod = 1;
+ texture->surfaceflags = 0;
+ texture->supercontents = SUPERCONTENTS_SOLID;
+ if (!(texture->basematerialflags & MATERIALFLAG_BLENDED))
+ texture->supercontents |= SUPERCONTENTS_OPAQUE;
}
void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfile, const char *meshname, const char *shadername)
texture->currentmaterialflags = texture->basematerialflags;
texture->numskinframes = 1;
texture->currentskinframe = texture->skinframes[0] = skinframe;
+ texture->surfaceflags = 0;
+ texture->supercontents = SUPERCONTENTS_SOLID;
+ if (!(texture->basematerialflags & MATERIALFLAG_BLENDED))
+ texture->supercontents |= SUPERCONTENTS_OPAQUE;
}
static void Mod_Sprite_SharedSetup(const unsigned char *datapointer, int version, const unsigned int *palette, qboolean additive)