Modern Doom games are real 3D, but the original was using an advanced form of raycasting[0].
[0]https://doomwiki.org/wiki/Doom_rendering_engine