TINTTAB





TINTTAB is a WAD lump in Heretic and Hexen for supporting translucency in objects, supplanting the partial invisibility effect used in Doom and Doom II.

It is a precalculated lookup table similar to COLORMAP, but maps each color against each other color, rather than against specific luminosity levels. It is 65536 bytes (256×256) and determines what each translucent foreground color changes to when shown in front of another color. Due to the limitation of 256 colors shown on screen at once, it is only an approximation in most cases - the ideal color is swapped for the closest color available in the palette through a process known as.

A similar lump exists in Strife with the name XLATAB, though it was calculated using a slightly different algorithm which ensures that any foreground color will eventually fade to the background color if the blending lookup is performed repeatedly.