mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
parent
a60a0d1b78
commit
56abccb508
@ -162,9 +162,15 @@ public class SkeletonSprite extends DisplayObject {
|
|||||||
}
|
}
|
||||||
if (image) {
|
if (image) {
|
||||||
a *= skeletonA * slot.a;
|
a *= skeletonA * slot.a;
|
||||||
r *= skeletonR * slot.r * a;
|
if (image.texture.premultipliedAlpha) {
|
||||||
g *= skeletonG * slot.g * a;
|
r *= skeletonR * slot.r * a;
|
||||||
b *= skeletonB * slot.b * 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);
|
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