Skip to content

CrossFadeGhost Class

Definition

Namespace: Brine2D.Systems.Rendering

Captures the outgoing sprite state for a cross-fade blend. Held on CrossFadeGhosts while a fade is in progress and rendered by SpriteRenderingSystem as a second draw call at fading-out opacity.

public sealed class CrossFadeGhost

Inheritance System.Object → CrossFadeGhost

Properties
Alpha Opacity of the ghost draw [0, 1]. Driven each frame by AnimationSystem as 1 - CrossFadeAlpha.
BaseAlpha The sprite's Tint alpha at the moment the cross-fade began [0, 1]. Restored to Tint when the fade completes, so that any pre-existing semi-transparent tint (e.g. a hit-flash) is not clobbered.
DrawOffset Outgoing draw offset (from DrawOffset). Applied to the ghost's world position so that Aseprite-trimmed frames render at the correct canvas position during a cross-fade.
FlipX Outgoing flip state.
FlipY Outgoing flip state.
Origin Outgoing origin.
SourceRect Outgoing source rectangle.
Texture Outgoing pre-loaded texture. Takes priority over TexturePath.
TexturePath Outgoing texture path. Used as a fallback when Texture is null, resolved against SpriteRenderingSystem's texture cache.
Tint Outgoing tint (RGB channels). Alpha is driven by Alpha.