game: use shader for enemy on-hit visual

This commit is contained in:
2025-08-21 00:58:58 +02:00
parent c8340efc95
commit 632643a130
5 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
shader_type canvas_item;
uniform float flash_amount : hint_range(0.0, 1.0) = 0.0; // 0 = normal, 1 = full white
void fragment() {
vec4 tex_color = texture(TEXTURE, UV);
COLOR = mix(tex_color, vec4(1.0, 1.0, 1.0, tex_color.a), flash_amount);
}

View File

@@ -0,0 +1 @@
uid://p7evv1wldgsa