Skip to content

Commit

Permalink
Add BlendMode.NonPremultiplied
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Kuusela committed Feb 28, 2024
1 parent cb3d331 commit c15b401
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Framework/Graphics/BlendMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public BlendMode(

public static readonly BlendMode Premultiply
= new (BlendOp.Add, BlendFactor.One, BlendFactor.OneMinusSrcAlpha);
public static readonly BlendMode NonPremultiplied
= new(BlendOp.Add, BlendFactor.SrcAlpha, BlendFactor.OneMinusSrcAlpha);
public static readonly BlendMode Add
= new (BlendOp.Add, BlendFactor.One, BlendFactor.DstAlpha);
public static readonly BlendMode Subtract
Expand Down

0 comments on commit c15b401

Please sign in to comment.