Hello im trying to make a 2D wind shader, well lets say it doesnt work as quite I want to... (im completely clueless now)
The shader is moving the bottom of the image too which I dont want to but I have no idea how to fix that...
Heres the code:
shader_type canvas_item;
uniform float amplitude = 20.f;
uniform float speed = 2.f;
void vertex(){
VERTEX.x += sin(TIME*speed)*amplitude*(UV.y-1.f);
}