AnimationLayerBlendMode Enum
Definition
Namespace: Brine2D.Animation
Controls how an AnimationLayer combines its frame values with the values already written to the SpriteComponent by lower-priority layers.
Fields
Override 0
The layer overwrites \(or lerps via [Weight](../AnimationLayer/Weight.md 'Brine2D\.Animation\.AnimationLayer\.Weight')\) the sprite's current values. This is the default behaviour.
Additive 1
The layer's tint RGB channels are added to the sprite's current tint. Alpha is lerped by Weight. Useful for glow, flash, or hit-effect overlays that should intensify an existing colour rather than replace it.
Non-tint properties (Brine2D.Animation.AnimationLayerMask.SourceRect, Brine2D.Animation.AnimationLayerMask.Origin, Brine2D.Animation.AnimationLayerMask.FlipX, Brine2D.Animation.AnimationLayerMask.FlipY, Brine2D.Animation.AnimationLayerMask.Texture) fall back to Override behaviour when AnimationLayerMask includes them, since addition is not meaningful for those properties.