From 7c8c39ad6e717792a8e31fb444a83a05e65bf117 Mon Sep 17 00:00:00 2001 From: Ruslan Ignatov Date: Sat, 25 Jul 2026 15:49:08 +0300 Subject: [PATCH] Added hit indicator shader --- game/shaders/hit_indicator.gdshader | 8 ++++++++ game/shaders/hit_indicator.gdshader.uid | 1 + 2 files changed, 9 insertions(+) create mode 100644 game/shaders/hit_indicator.gdshader create mode 100644 game/shaders/hit_indicator.gdshader.uid diff --git a/game/shaders/hit_indicator.gdshader b/game/shaders/hit_indicator.gdshader new file mode 100644 index 0000000..602af43 --- /dev/null +++ b/game/shaders/hit_indicator.gdshader @@ -0,0 +1,8 @@ +shader_type canvas_item; + +uniform vec3 damage_color : source_color = vec3(1.0); +uniform float intensity : hint_range(0.0, 1.0) = 0.0; + +void fragment() { + COLOR.rgb = mix(COLOR.rgb, damage_color.rgb, intensity); +} \ No newline at end of file diff --git a/game/shaders/hit_indicator.gdshader.uid b/game/shaders/hit_indicator.gdshader.uid new file mode 100644 index 0000000..b94adaf --- /dev/null +++ b/game/shaders/hit_indicator.gdshader.uid @@ -0,0 +1 @@ +uid://bywlejhmgj55q