Oh, this is a topic that's been talked about way more than it should. It was done long ago...
viewtopic.php?f=5&t=12483&hilit=perspective
A user by the name of xXxMoNkEyMaNxXx (Creator of that topic) was inspired by a project (Star Fox style engine) I was working on at the time and took the initiative to create a shader himself. I still use it to this day. It has its problems but it does what it needs to. I've heavily modified the code numerous times to fit my needs.
3D in Löve is a well covered topic here.
Of course that only covers the texture warping.
Actually creating a 3D engine is a whole different beast. You encounter a whole new set of problems. First off you need to actually calculate a 3D point's 2D screen location. Then check to see which polygons are actually on screen and actually facing the camera. Then you run into the problem of Z-fighting since Löve isn't a 3D engine it doesn't do any per-pixel z-sorting.
Then a bunch of us have all made Wolfenstein style 3D engines.
However there is also another user who has created his own 3D engine called
Löve3D.
Bottom line, 3D isn't something you can just jump into. You have to experiment. If you want to make a game in 3D as opposed to an engine so you can make a game, look into something like Unity since the 3D is done for you already.
Though making 3D work in something that's not meant for it is a sort of hobby for a lot of people... There's even
3D Pico8 games. Notably
this one, which even I haven't been able to successfully dissect.