mlpcardgame/UIAssets/Effects/FlashCenter.shader

11 lines
230 B
Text
Raw Permalink Normal View History

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);
}