level_indicator.shader 160 B

1234567891011
  1. shader_type canvas_item;
  2. uniform float full = 1.0;
  3. void fragment(){
  4. if (UV.y > 1.0 - full){
  5. COLOR = vec4(1,1,0,1);
  6. }else{
  7. COLOR = vec4(0.7,0.3,0,1);
  8. }
  9. }