- Remove hw_detailmapping and hw_glowmapping since they're no longer relevant with GZDoom's backend (they're always in an on state).

This commit is contained in:
Mitchell Richters 2021-01-03 21:39:21 +11:00
parent de1b4765dc
commit b191a482d6
4 changed files with 0 additions and 22 deletions

View file

@ -706,8 +706,6 @@ enum {
extern int32_t gltexmaxsize; extern int32_t gltexmaxsize;
EXTERN_CVAR(Bool, hw_detailmapping)
EXTERN_CVAR(Bool, hw_glowmapping)
EXTERN_CVAR(Bool, hw_animsmoothing) EXTERN_CVAR(Bool, hw_animsmoothing)
EXTERN_CVAR(Bool, hw_hightile) EXTERN_CVAR(Bool, hw_hightile)
EXTERN_CVAR(Bool, hw_models) EXTERN_CVAR(Bool, hw_models)

View file

@ -1478,21 +1478,6 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
FGameTexture *det = nullptr, *glow = nullptr; FGameTexture *det = nullptr, *glow = nullptr;
float detscale = 1.f; float detscale = 1.f;
#if 0
// The data lookup here is one incredible mess. Thanks to whoever cooked this up... :(
// Todo: assign the layers to the base textures at setup time
if (!(tspr->clipdist & TSPR_FLAGS_MDHACK))
{
det = tex = hw_detailmapping ? mdloadskin((md2model_t *) m, tile2model[Ptile2tile(tspr->picnum, lpal)].skinnum, DETAILPAL, surfi, nullptr) : nullptr;
if (det)
{
for (auto sk = m->skinmap; sk; sk = sk->next)
if ((int32_t) sk->palette == DETAILPAL && sk->skinnum == tile2model[Ptile2tile(tspr->picnum, lpal)].skinnum && sk->surfnum == surfi)
detscale = sk->param;
}
glow = hw_glowmapping ? mdloadskin((md2model_t *) m, tile2model[Ptile2tile(tspr->picnum, lpal)].skinnum, GLOWPAL, surfi, nullptr) : 0;
}
#endif
int palid = TRANSLATION(Translation_Remap + curbasepal, globalpal); int palid = TRANSLATION(Translation_Remap + curbasepal, globalpal);
GLInterface.SetFade(sector[tspr->sectnum].floorpal); GLInterface.SetFade(sector[tspr->sectnum].floorpal);
GLInterface.SetTexture(tex, palid, CLAMP_XY); GLInterface.SetTexture(tex, palid, CLAMP_XY);

View file

@ -25,8 +25,6 @@ Ken Silverman's official web site: http://www.advsys.net/ken
int checkTranslucentReplacement(FTextureID picnum, int pal); int checkTranslucentReplacement(FTextureID picnum, int pal);
CVAR(Bool, hw_detailmapping, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CVAR(Bool, hw_glowmapping, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CVARD(Bool, hw_animsmoothing, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable model animation smoothing") CVARD(Bool, hw_animsmoothing, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable model animation smoothing")
CVARD(Bool, hw_hightile, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable hightile texture rendering") CVARD(Bool, hw_hightile, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable hightile texture rendering")
CVARD(Bool, hw_models, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable model rendering") CVARD(Bool, hw_models, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "enable/disable model rendering")

View file

@ -1184,9 +1184,6 @@ OptionMenu "PolymostOptions"
Option "$POLYMOST_TC", "hw_hightile", "OnOff" Option "$POLYMOST_TC", "hw_hightile", "OnOff"
Option "$POLYMOST_CACHE", "r_precache", "OnOff" Option "$POLYMOST_CACHE", "r_precache", "OnOff"
StaticText "" StaticText ""
Option "$POLYMOST_DETAIL", "hw_detailmapping", "OnOff", "hw_hightile"
Option "$POLYMOST_GLOW", "hw_glowmapping", "OnOff", "hw_hightile"
StaticText ""
Option "$POLYMOST_PALETTEEMU", "hw_useindexedcolortextures", "OnOff" Option "$POLYMOST_PALETTEEMU", "hw_useindexedcolortextures", "OnOff"
Option "$POLYMOST_PALINTER", "hw_shadeinterpolate", "OnOff", "hw_useindexedcolortextures" Option "$POLYMOST_PALINTER", "hw_shadeinterpolate", "OnOff", "hw_useindexedcolortextures"
StaticText "" StaticText ""