diff --git a/shaders/Pixelization.gdshader b/shaders/Pixelization.gdshader new file mode 100644 index 0000000..f950894 --- /dev/null +++ b/shaders/Pixelization.gdshader @@ -0,0 +1,7 @@ +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); +} \ No newline at end of file