Files

16 lines
366 B
Plaintext
Raw Permalink Normal View History

2025-05-17 13:37:56 +02:00
shader_type canvas_item;
uniform vec2 tiling_scale = vec2(5.0, 5.0);
uniform sampler2D noise : repeat_enable;
varying vec4 modulate;
void vertex() {
modulate = COLOR;
}
2025-05-17 13:37:56 +02:00
void fragment() {
vec2 uv = vec2(UV.x * tiling_scale.x, UV.y * tiling_scale.y); // Change 10.0 to control tiling scale
COLOR = texture(TEXTURE, fract(uv));
COLOR = COLOR * modulate;
2025-05-17 13:37:56 +02:00
}