palette_complete[255] = 0; // completely transparent black
// FIXME: fullbright_start should be read from colormap.lmp
- colormap = FS_LoadFile("gfx/colormap.lmp", true);
+ colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true);
if (colormap && fs_filesize >= 16385)
fullbright_start = 256 - colormap[16384];
else
float gamma, scale, base;
qbyte *pal;
qbyte temp[256];
- pal = (qbyte *)FS_LoadFile ("gfx/palette.lmp", false);
+ pal = (qbyte *)FS_LoadFile ("gfx/palette.lmp", tempmempool, false);
if (pal && fs_filesize >= 768)
{
memcpy(host_basepal, pal, 765);
gamma = 1;
scale = 1;
base = 0;
+// COMMANDLINEOPTION: Client: -texgamma <number> sets the quake palette gamma, allowing you to make quake textures brighter/darker, not recommended
i = COM_CheckParm("-texgamma");
if (i)
gamma = atof(com_argv[i + 1]);
+// COMMANDLINEOPTION: Client: -texcontrast <number> sets the quake palette contrast, allowing you to make quake textures brighter/darker, not recommended
i = COM_CheckParm("-texcontrast");
if (i)
scale = atof(com_argv[i + 1]);
+// COMMANDLINEOPTION: Client: -texbrightness <number> sets the quake palette brightness (brightness of black), allowing you to make quake textures brighter/darker, not recommended
i = COM_CheckParm("-texbrightness");
if (i)
base = atof(com_argv[i + 1]);