mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
parent
a60a0d1b78
commit
56abccb508
@ -162,9 +162,15 @@ public class SkeletonSprite extends DisplayObject {
|
||||
}
|
||||
if (image) {
|
||||
a *= skeletonA * slot.a;
|
||||
r *= skeletonR * slot.r * a;
|
||||
g *= skeletonG * slot.g * a;
|
||||
b *= skeletonB * slot.b * a;
|
||||
if (image.texture.premultipliedAlpha) {
|
||||
r *= skeletonR * slot.r * a;
|
||||
g *= skeletonG * slot.g * a;
|
||||
b *= skeletonB * slot.b * a;
|
||||
} else {
|
||||
r *= skeletonR * slot.r;
|
||||
g *= skeletonG * slot.g;
|
||||
b *= skeletonB * slot.b;
|
||||
}
|
||||
polygonBatch.add(image.texture, worldVertices, verticesLength, uvs, triangles, r, g, b, a, slot.data.blendMode, matrix);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user