Hi all,
I´m trying to create a water shader and I have a foam texture i want to animate but i have a problem when I try to modify the Y coordinate for it:
COLOR = texture(foam_texture, UV + vec2(0.0, 0.5));
the image gets distorted instead of repeating itself:
This texture is an image I grabbed from Google, converted it to greyscale and added an alpha channel with GIMP. Then i created a uniform variable and selected the texture from the inspector.
I´m new with this topic and need help to understand if there is any preprocessing i need to do to the texture or if it´s a coding issue.
Thank you very much.