Simple 2D dissolve
A simple dissolve shader. Add a SimplexNoise or any texture to Dissolve Texture
to define the dissolve pattern.
Shader code
shader_type canvas_item;
uniform sampler2D dissolve_texture : hint_albedo;
uniform float dissolve_value : hint_range(0,1);
void fragment(){
vec4 main_texture = texture(TEXTURE, UV);
vec4 noise_texture = texture(dissolve_texture, UV);
main_texture.a *= floor(dissolve_value + min(1, noise_texture.x));
COLOR = main_texture;
}
It’s a great simple shader!
Here you can find usage and explanation of how it is working
https://youtu.be/vz5VkRyDH54