Grid texture weirdly stretches on z axis but not x.

So I made a grid texture and wrote some code to put spheres on the interactions of the grid. The code puts a sphere every 0.1 meters. On the x axis it works perfectly but on the z when getting further away from z = 0, the spheres are in the wrong position.

I included a screenshot and my grid texture.
Please ask for additional information if needed.
Thank You!


I notice your grid.png is 1000x1000… did you import it with NPOT set to None?

You might want to redo it as 1024x1024 so it is POT.