shader_type canvas_item; void fragment(){ if (texture(TEXTURE,SCREEN_UV).r > 0.4){ COLOR.rgba = vec4(1,1,1,1) } else { COLOR.rgba = vec4(0,0,0,0) } }