I have this TextureRect and it has a simple scrolling shader, but I need to input player velocity values into the offset. I have no idea how to do that, so I’m asking more professional people for help!
The shader:
shader_type canvas_item;
void fragment(){
vec2 newuv = UV;
newuv.x += TIME;
vec4 c = texture(TEXTURE, newuv);
COLOR = c;
}
I literally copied it from an older post, since I’ve had this problem for a very long time. I appreciate the help!
