World Aligned Texture Stretching on Corners and Center Of Meshes

Hello everyone! I have a problem with the world aligned texture node. I’m trying to make my textures seamlessly connect to each other because my levels are built within grids in a maze-like way. However, when I use the world aligned texture using the XYZ output, it works on certain areas but it has noticeable stretching on the corners and the center of the meshes.

I tried to look up answers and do various things but nothing worked, so I’m hoping that I can find another solution here. Here are some pictures so you can get a better idea on what I’m working with. It’s a very simple material blueprint.

Not sure if this information is needed, but I’m only using it for walls, floors, and ceilings; nothing like rails or pipes. Those will be textured separately.

This sounds similar to what people use the Absolute World Position node for. Maybe it will help in your case too?

I actually watched that tutorial. I tried doing what he did and it didn’t work. I even tried the complicated method with that “If” node. Didn’t work either.

When I tried it before, it did a lot less stretching, but it was even more noticeable because it didn’t blend within the texture. Not sure if that’s better or worse…

I tried experimenting with the numbers related to that ‘If’ method. It was getting better but it seemed like it started to clamp at a certain point which didn’t allow me to get rid of the stretching fully. If I did exceed that limit, every side of the texture stretched and I’m not sure why.