Added an optional (true by default) boolean argument to love.graphics.setBlendMode to specify whether alpha should be multiplied with rgb when blending.

Removed the 'premultiplied' blend mode, since setBlendMode("alpha", false) accomplishes the same thing now.

The 'multiply' blend mode is unaffected by the new flag, since fixed-function hardware blending can't do the equivalent of setBlendMode("multiply", true).
This commit is contained in:
Alex Szpakowski
2015-06-24 16:47:10 -03:00
parent ed3f419747
commit 88c8e0c071
5 changed files with 27 additions and 19 deletions
-1
View File
@@ -50,7 +50,6 @@ public:
BLEND_ADD,
BLEND_SUBTRACT,
BLEND_MULTIPLY,
BLEND_PREMULTIPLIED,
BLEND_SCREEN,
BLEND_REPLACE,
BLEND_MAX_ENUM