shader_type spatial; render_mode unshaded,wireframe; uniform bool is_hide = false; void fragment() { if(is_hide){ discard; } ALBEDO = COLOR.rgb; ALPHA = COLOR.a; }