Add DamagePostProcess component for enhanced visual feedback on damage; implement vignette effect and adjust flash color settings

This commit is contained in:
2025-07-12 19:07:26 +02:00
parent a4fe7bbb07
commit e3e58f89cb
11 changed files with 116 additions and 359 deletions

View File

@@ -10,7 +10,6 @@ namespace Systems
private static readonly int MarkerFlashColor = Shader.PropertyToID("_FlashColor");
private static readonly int MarkerFlashAmount = Shader.PropertyToID("_FlashAmount");
private Material material;
private Coroutine damageFlashCoroutine;
[SerializeField] private float flashDuration;
[ColorUsage(true, true)][SerializeField] private Color flashColor = Color.white;
@@ -38,7 +37,7 @@ namespace Systems
private void OnHit()
{
damageFlashCoroutine = StartCoroutine(Flash());
StartCoroutine(Flash());
}
private IEnumerator Flash()