TileMap shader is tiling my shader

Godot Version

v4.3.stable.official [77dcf97d8]

Question

I know there must be a simple answer to this, but I can’t find a straight answer on how to get the distance to a point in world space. I’ve tried many things, but this is the closest that I’ve gotten.

As you can see for some reason the distance is tiling every 16 tiles. The random rectangles are tiles placed sporadically for testing, and a simple gradient for debugging shows that the distance between a point that’s 16 tiles away and the origin is 0 somehow.