mlpcardgame/UIAssets/Effects/FlashCenter.shader

11 lines
No EOL
230 B
GLSL

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