dissintegrate.gdshader 263 B

1234567891011121314
  1. shader_type canvas_item;
  2. render_mode blend_mix;
  3. uniform float amount = 20.0;
  4. void fragment() {
  5. vec2 uv = UV * 0.05;
  6. float a = fract(sin(dot(UV, vec2(12.9898, 78.233))) * 438.5453);
  7. vec4 col = texture(TEXTURE, UV);
  8. col.a *= pow(a, amount);
  9. COLOR = col;
  10. }