1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/shaders/Pixelization.gdshader
T

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);
}