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