1
0
Fork 0
forked from fte/fteqw

Draw depth map only with debug builds. It's otherwise a cheat if in releases.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@133 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-04 18:03:47 +00:00
parent e76cd7f2ac
commit 1b05d4209e

View file

@ -1735,7 +1735,36 @@ void R_ApplySIRDAlgorithum(void)
curp = (vid.buffer + (vid.rowbytes * y));
curz = (d_pzbuffer + (vid.width * y ));
if (r_dosirds != 2)
#ifdef _DEBUG
if (r_dosirds == 2)
{
//if we are just drawing the height map
//this lets you see which layers are used to
//create the SIRD
//
//NOTE: even though it may sort of look like
//a grey-scale height map, that is merely a
//coincidence because of how the colours are
//organized in the pallette.
lastz = 0;
cz = 0;
for (x=0; x<vid.width; x++)
{
if (lastz != *curz)
{
lastz = *curz;
cz = R_SIRDZFunc(*curz);
}
*curp = cz;
curp++;
curz++;
}
}
else
#endif
{
// draw the SIRD
@ -1782,33 +1811,6 @@ void R_ApplySIRDAlgorithum(void)
curz++;
}
}
else
{
//if we are just drawing the height map
//this lets you see which layers are used to
//create the SIRD
//
//NOTE: even though it may sort of look like
//a grey-scale height map, that is merely a
//coincidence because of how the colours are
//organized in the pallette.
lastz = 0;
cz = 0;
for (x=0; x<vid.width; x++)
{
if (lastz != *curz)
{
lastz = *curz;
cz = R_SIRDZFunc(*curz);
}
*curp = cz;
curp++;
curz++;
}
}
}
}