Parallax Scrolling / Pseudo 3D

I’m making a 2D horror game and I want the walls to be pseudo 3D I have searched everywhere but have only found the following:

I have managed to find one source but don’t know how I would go about doing it.

Source: c - Pseudo 3D walls (top-down raycasting, sort of) - Stack Overflow

Can someone help me or tell me how I can make this in unity?

Thanks! I’m trying to archive something like the image shows: The image is from the source. (edited)
The image is from the source I found.

Parallax can occur for one of two reasons:

  • different layers at different distances from the camera (yet moving at the same speed) appear to move at different speeds when viewed with a perspective camera. This effect will not work with an orthographic camera.

  • different layers are intentionally moved at different speeds to fake the parallax. This is necessary for orthographic camera setups.

Rather than links to text solutions, perhaps a pointed time-stamped video of a game that uses this particular effect would help nail down what you’re trying to do?