Gate beacon: dressing beacon at every wormhole and a screen warp on wormhole travel

Delete the dead WormholeCamera field and the commented camera block in EnterWormhole.
Add Ship.WormholeWarp (derived from the wormhole animation), the Wormhole Warp
post-process effect with its Resources shader, and a presenter that holds the volume for
one transition. The wormhole prefab gains a collider-free Anchor Beacon child, turned by
ZoneRenderer.AddWormhole to stand beyond the wormhole as seen from the zone centre.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-25 21:59:26 +01:00
commit 1999cca521
10 changed files with 659 additions and 7 deletions

View file

@ -48,6 +48,12 @@ public class Ship : Entity
public bool WormholeAnimationInProgress => _enteringWormhole || _exitingWormhole;
// How deep into the wormhole the ship is, 0..1: rising while entering, falling while exiting, 0 otherwise. Derived
// from the animation; presenters read it (the screen warp) and nothing in the sim does.
public float WormholeWarp => _enteringWormhole ? _wormholeAnimationProgress
: _exitingWormhole ? 1 - _wormholeAnimationProgress
: 0;
public event Action OnExitedWormhole;
public event Action OnEnteredWormhole;