11 lines
No EOL
214 B
Text
11 lines
No EOL
214 B
Text
shader_type canvas_item;
|
|
|
|
uniform vec2 direction = vec2(1.0,0.0);
|
|
uniform float speed_scale = 0.1;
|
|
|
|
void fragment(){
|
|
|
|
vec2 move = direction * TIME * speed_scale;
|
|
|
|
COLOR = texture(TEXTURE, UV + move);
|
|
} |