cursor.gdshader 257 B

12345678910
  1. shader_type canvas_item;
  2. uniform vec3 color : source_color = vec3(1.0, 1.0, 1.0);
  3. void fragment() {
  4. // Called for every pixel the material is visible on.
  5. float dist = length(UV - vec2(0.5, 0.5));
  6. COLOR.a = 1.0 - clamp(abs(0.4 - dist)/0.1, 0.0, 1.0);
  7. }