Panning
Pans a texture in a direction specified by speed, automatically wraps
Uniforms:
Speed: The direction and speed of the panning (positive moves to the top left)
Shader code
shader_type canvas_item;
// --- Uniforms --- //
uniform vec2 speed = vec2(1.0, 0.0);
// --- Functions --- //
void fragment() {
COLOR = texture(TEXTURE, mod(UV + TIME * speed, 1.0));
}