gai-godot-games/tutorial-game/scenes/mob/blink.gdshader

11 lines
235 B
Plaintext
Raw Permalink Normal View History

2024-10-17 14:37:17 +02:00
shader_type canvas_item;
uniform vec4 blink_color: source_color;
uniform float blink_intensity = 0;
void fragment() {
vec4 color = texture(TEXTURE, UV);
color = mix(color, blink_color, blink_intensity * color.a);
COLOR = color;
}