So I've been trying to find a way to texture a cube based on the location/direction of face normals so that any extruded geometry is automatically aligned perfectly with the texture.
With my limited knowledge on nodes, I got this to work somewhat, but it only works for faces pointing towards positive XYZ. I found another post here which fixes this by putting a math node set to absolute after the separate XYZ node. Unfortunately, this doesn't flip the texture properly for faces pointing in the negative directions, and it's the reason I'm making this post. To hopefully get some help to fix the mirroring issue for negative faces, or see if there's a better method for this altogether.
I'd like to keep all of this to only one material, and (if it's even possible), use only one image texture node to make it easier to swap textures.
This is what I have so far:
Current node setup:





