plasma.gdshader 366 B

123456789101112
  1. shader_type canvas_item;
  2. uniform sampler2D noise1 : repeat_enable;
  3. uniform sampler2D noise2 : repeat_enable;
  4. const float SCROLL_SPEED = 0.04;
  5. void fragment() {
  6. vec2 noise1_uv = UV + vec2(SCROLL_SPEED) * TIME;
  7. COLOR = texture(noise1, noise1_uv);
  8. COLOR.rgb += 0.3 * texture(noise2, UV * 4.0 - vec2(texture(noise1, noise1_uv * 0.3).xy * 0.015) * TIME * 2.0).r;
  9. }