Skip to content

AnimationLayerBlendMode Enum

Controls how an AnimationLayer combines its frame values with the values already written to the SpriteComponent by lower-priority layers.

public enum AnimationLayerBlendMode

Fields

Override 0

The layer overwrites (or lerps via 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.