Rotate Material based on its world location on slopes? World Aligned Materials?

I have a texture that looks good only in one direction, so I’d like it if I could rotate the texture depending on its angle in the world, specifically on steep slopes where it appears. It has a definitive line going in the world Y axis, so on wall faces along that axis, the texture looks fine, but not so much on the other angles. Screenshot below.

I’ve got a lead about World Aligned Textures but I couldn’t figure it out myself. Hopefully someone can help, thanks.