mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 09:38:44 +08:00
[corona] Updated mobdebug, fixed premultiplied alpha rendering. Closes #1520.
This commit is contained in:
parent
f68ac18a82
commit
48ccb78a27
File diff suppressed because it is too large
Load Diff
@ -191,8 +191,9 @@ function spine.Skeleton:updateWorldTransform()
|
||||
local slotColor = slot.color
|
||||
local attachmentColor = attachment.color
|
||||
local alpha = skeletonColor.a * slotColor.a * attachmentColor.a
|
||||
local multiplier = alpha
|
||||
if premultipliedAlpha then multiplier = 1 end
|
||||
local multiplier = 1
|
||||
if premultipliedAlpha then multiplier = alpha end
|
||||
|
||||
color:set(skeletonColor.r * slotColor.r * attachmentColor.r * multiplier,
|
||||
skeletonColor.g * slotColor.g * attachmentColor.g * multiplier,
|
||||
skeletonColor.b * slotColor.b * attachmentColor.b * multiplier,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user