Browse Source

[ts][player] PMA by default.

badlogic 6 years ago
parent
commit
96a2386609

+ 1 - 1
spine-ts/build/spine-player.js

@@ -9591,7 +9591,7 @@ var spine;
             if (!config.fullScreenBackgroundColor)
                 config.fullScreenBackgroundColor = config.backgroundColor;
             if (!config.premultipliedAlpha)
-                config.premultipliedAlpha = false;
+                config.premultipliedAlpha = true;
             if (!config.success)
                 config.success = function (widget) { };
             if (!config.error)

File diff suppressed because it is too large
+ 0 - 0
spine-ts/build/spine-player.js.map


+ 2 - 2
spine-ts/player/src/Player.ts

@@ -62,7 +62,7 @@
 		/* Optional: list of skin names from which the user can choose. */
 		skins: string[]
 
-		/* Optional: whether the skeleton uses premultiplied alpha. Default: false. */
+		/* Optional: whether the skeleton uses premultiplied alpha. Default: true. */
 		premultipliedAlpha: boolean
 
 		/* Optional: whether to show the player controls. Default: true. */
@@ -325,7 +325,7 @@
 			if (!config.alpha) config.alpha = false;
 			if (!config.backgroundColor) config.backgroundColor = "#000000";
 			if (!config.fullScreenBackgroundColor) config.fullScreenBackgroundColor = config.backgroundColor;
-			if (!config.premultipliedAlpha) config.premultipliedAlpha = false;
+			if (!config.premultipliedAlpha) config.premultipliedAlpha = true;
 			if (!config.success) config.success = (widget) => {};
 			if (!config.error) config.error = (widget, msg) => {};
 			if (!config.debug) config.debug = {

Some files were not shown because too many files changed in this diff