11 lines
230 B
Text
11 lines
230 B
Text
|
shader_type canvas_item;
|
||
|
render_mode blend_mix,unshaded;
|
||
|
|
||
|
uniform float effect_strength : hint_range(0, 1) = 0.1;
|
||
|
|
||
|
void fragment() {
|
||
|
vec2 uv = UV;
|
||
|
vec2 center = vec2(0.5);
|
||
|
|
||
|
COLOR.a *= effect_strength*2.-distance(UV, center);
|
||
|
}
|