shader_type canvas_item; float square(float x) { return x * x; } void fragment() { if (UV.y < 0.1) COLOR.a *= square(UV.y * 10.0); if (UV.y > 0.9) COLOR.a *= square((1. - UV.y) * 10.0); COLOR.a *= 1. - (1. - UV.x) * (1. - UV.x); }