Files
GameJam2023/Levels/Final Levels/CloudScroll.gdshader
2023-09-03 23:10:58 -07:00

9 lines
212 B
Plaintext

shader_type canvas_item;
uniform vec2 motion = vec2(0.0);
uniform float scale = 1.0;
uniform vec2 offset = vec2(0.0);
void vertex(){
UV = (VERTEX + offset + TIME * motion) * TEXTURE_PIXEL_SIZE * (1.0/scale);
}