SupaLidlGame/Shaders/Scrolling.gdshader

9 lines
172 B
Plaintext
Raw Normal View History

2023-09-07 11:53:51 -07:00
shader_type canvas_item;
uniform float speed = 16;
uniform vec2 direction = vec2(1, 0);
void fragment() {
COLOR = texture(TEXTURE, UV - direction * TIME * speed);
}