blob: 1920d93e8492c2b960ec43771b28f0e260bc6986 (
plain)
1
2
3
4
5
6
7
8
9
|
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);
}
|