A game created for the Godot Wild Jam #21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
306B

  1. shader_type canvas_item;
  2. uniform float rot_speed:hint_range(-6.0, 6.0) = 1.0;
  3. void fragment(){
  4. float ri = TIME * rot_speed;
  5. mat2 rm = mat2(
  6. vec2(sin(ri), -cos(ri)),
  7. vec2(cos(ri), sin(ri))
  8. );
  9. vec2 pos = rm * (UV - vec2(0.5, 0.5));
  10. pos = pos + vec2(0.5, 0.5);
  11. COLOR = texture(TEXTURE, pos);
  12. }