Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AdjustAlphaBlend()

static Blend Microsoft.Xna.Framework.Graphics.GraphicsHelpers.AdjustAlphaBlend ( Blend blend)
inlinestaticpackage

Definition at line 38 of file GraphicsHelpers.cs.

39 {
40 return blend switch
41 {
42 Blend.SourceColor => Blend.SourceAlpha,
43 Blend.InverseSourceColor => Blend.InverseSourceAlpha,
44 Blend.DestinationColor => Blend.DestinationAlpha,
45 Blend.InverseDestinationColor => Blend.InverseDestinationAlpha,
46 _ => blend,
47 };
48 }

Referenced by Microsoft.Xna.Framework.Graphics.BlendState.Apply(), and Microsoft.Xna.Framework.Graphics.GraphicsHelpers.IsSeparateBlend().