mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
7 lines
186 B
Plaintext
7 lines
186 B
Plaintext
shader_type canvas_item;
|
|
uniform int pixelSize;
|
|
|
|
void fragment() {
|
|
vec2 uv = UV - mod(UV, vec2(float(pixelSize)) / vec2(textureSize(TEXTURE, 0)));
|
|
COLOR = texture(TEXTURE, uv);
|
|
} |