Scratch mosaic effect

Acts just like the mosaic effect from Scratch

Shader code
shader_type canvas_item;

uniform float amount = 0.0;

void vertex() {
	if (amount != 0.0) {
		float newAmount = trunc(((abs(amount) + 5.0) / 10.0) + 1.0);
		UV = UV * vec2(newAmount);
	}
}
Tags
Scratch
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

More from The2AndOnly

Scratch brightness effect

Scratch pixelate effect

Scratch color effect

Related shaders

Scratch whirl effect

Scratch fisheye effect

Scratch color effect

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments