The Marathon engine could sort of do this. It was similar to the doom engine in that maps where laid out as polygons on a flat plane, but different in that you could have overlapping polygons, which allowed the devs to do something like this:
https://www.youtube.com/watch?v=9WxeeiqWrn4