So I've been having this issue with one of my more complex shaders, but it turns out, the most basic World Position shader is also having this issue. I'm still new to shaders and ASE, so i'm probably doing something wrong...
I'm trying to make a World Position shader to be able to have multiple sections of a level connect to one another without worrying of the texture tiling together properly. I noticed that sometimes the normal seemed inverted or the light not matching the direction it's emanating from. Rotating an object is making the lights direction change, while the texture itself stays put.
I've checked with debug and everything is static and not moving (even the normal) but whenever i remove debug and test it all together, the rotation of the object is affecting the direction of the light.
Here's the shader:
and here's a gif of it:
What I'm trying to get with this, is that the texture tiles together and light is not affected by the objects rotation.
Any help is appreciated
P.S.: Don't mind the normal, i just used something that made this effect much more apparent.