shader_type canvas_item; render_mode blend_add; uniform vec4 color: hint_color; uniform float margin; void fragment() { COLOR=color; if (abs(UV.x-0.5)>(0.5-margin)||abs(UV.y-0.5)>(0.5-margin)){ COLOR=vec4(0,0,0,1); } }