Thanks xyz.
When importing textures in godot 4 you can no longer choose for the texture to be set as repeat. You can however set it when assigning the image to a sprite2d for example - there is a property to indicate the texture is repeating. I was wondering if there is something similar to indicate to the shader a uniform sampler2d is repeating.
But anyhow I will do the wrapping within the shader.