Replace ChronoshiftPaletteEffect with a post-processing shader.

This commit is contained in:
Paul Chote
2023-10-22 17:05:28 +01:00
committed by Gustas
parent 7adcba5b7f
commit 59d40c8b4e
7 changed files with 48 additions and 28 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Cnc.Activities
// Trigger screen desaturate effect
if (screenFlash)
foreach (var a in self.World.ActorsWithTrait<ChronoshiftPaletteEffect>())
foreach (var a in self.World.ActorsWithTrait<ChronoshiftPostProcessEffect>())
a.Trait.Enable();
if (teleporter != null && self != teleporter && !teleporter.Disposed)