URP Lit Shader for Walls like in Sims Game

Hey guys,

I would like to create 2 different wall views for my game. One where the full height of a wall is visible and one where only the bottom 10% is visible.

My current shader can be seen in 1.png.
In the current result (2.png & 3.png) you can see that each side is rotated in perspective. However, it should look something like in 4.png.

Can you give me a hint?




Its not going to be as easy as you think, at least if you want to get very decent result. It does not work in your case as you use default UV (tiling and offset node) that is not mapped in any way to world or object space coordinates. You need to use object (pixel) position as UV for cutting, or even better you need some custom texture (or vertex color) to determine what part of wall should not be visible.