Absolute world position all directions

Hi guys, I’m having a little trouble with using absolute world position. As you can see, it stretches around corners and I’m not sure what’s the best way to fix it.

Here is my material function. I was using a switch to fix some of the issues, but it’s obviously not going to work on this model.

Thanks in advance, Tom.

World aligned texture material function is what you are looking for.

Thanks, that worked perfectly.

Thought I’d post a picture for reference if anyone else has this problem. I built it as a function that has output for a merged texture, and one for split channels.