mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 20:26:13 +01:00
13 lines
319 B
Plaintext
13 lines
319 B
Plaintext
shader_type spatial;
|
|
render_mode unshaded;
|
|
|
|
uniform vec2 direction_and_speed = vec2(0.25, 0.00);
|
|
uniform vec2 scale = vec2(1.0);
|
|
uniform bool flip = false;
|
|
uniform sampler2D albedo;
|
|
|
|
void fragment() {
|
|
vec2 uv = UV * scale - direction_and_speed * TIME;
|
|
if (flip) { uv = 1.0 - uv; }
|
|
ALBEDO = texture(albedo, uv).rgb;
|
|
} |