diff --git a/engine/sw/r_main.c b/engine/sw/r_main.c index 3a7ed30ba..fb8c9acdc 100644 --- a/engine/sw/r_main.c +++ b/engine/sw/r_main.c @@ -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