Showing off some of the shader work I did on Mind Over Magic. Here is a 9 slice shader I built for our game using world coordinates. The basic idea was taking the world coordinates of each wall and constructing UVs based on them. I then used those UVs and remapped them coordinates on a texture.