Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static Vector4 Over(Vector4 destination, Vector4 source, Vector4 blend)
float srcW = source.W - blendW;

// calculate final alpha
float alpha = dstW + srcW + blendW;
float alpha = dstW + source.W;

// calculate final color
Vector4 color = (destination * dstW) + (source * srcW) + (blend * blendW);
Expand All @@ -191,7 +191,7 @@ public static Vector4 Atop(Vector4 destination, Vector4 source, Vector4 blend)
float dstW = destination.W - blendW;

// calculate final alpha
float alpha = dstW + blendW;
float alpha = destination.W;

// calculate final color
Vector4 color = (destination * dstW) + (blend * blendW);
Expand Down