Wall texture

Wall textures are graphics built up from several lumps in the WAD files and used to cover wall surfaces.

Complete details of the data structures are given in the Unofficial Doom Specs.

Each wall consists of a linedef that references one or two sidedefs (right and maybe left). Each sidedef gives three texture names (lower, middle and upper), up to eight characters each. (The name "-" means no texture, either not applicable or totally transparent.)

The Doom engine looks up a texture name using the wall texture lumps TEXTURE1 and TEXTURE2. (TEXTURE1 is present in all Doom versions; TEXTURE2 supports the additional textures in registered/Ultimate Doom and Doom II.) This yields a list of indicies into the PNAMES lump. For each index, PNAMES gives the name of a lump known as a wall patch; each wall patch lump is stored in Doom's picture format. Rendering the texture's list of patches gives the final texture graphic that can be applied to any wall surface.

Wall textures must be exactly 128 units high, or the tutti-frutti effect will occur. There is no maximum width.

Wall textures can be animated, to a limited extent, to represent waterfalls, fire, dripping blood and the like. Certain fixed texture name sequences are built into the Doom engine. If a sidedef specifies a name in a sequence, the engine will rotate the name through the sequence about three times a second.