mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
Fixed slot alpha blending in spine-unity.
This commit is contained in:
parent
09aa13c643
commit
2a480de598
@ -141,10 +141,10 @@ public class SkeletonComponent : MonoBehaviour {
|
||||
vertices[vertexIndex + 2] = new Vector3(regionVertices[RegionAttachment.X2], regionVertices[RegionAttachment.Y2], 0);
|
||||
vertices[vertexIndex + 3] = new Vector3(regionVertices[RegionAttachment.X3], regionVertices[RegionAttachment.Y3], 0);
|
||||
|
||||
color.r = skeleton.R * slot.R;
|
||||
color.g = skeleton.G * slot.G;
|
||||
color.b = skeleton.B * slot.B;
|
||||
color.a = skeleton.A * slot.A;
|
||||
color.r = skeleton.R * slot.R * color.a;
|
||||
color.g = skeleton.G * slot.G * color.a;
|
||||
color.b = skeleton.B * slot.B * color.a;
|
||||
colors[vertexIndex] = color;
|
||||
colors[vertexIndex + 1] = color;
|
||||
colors[vertexIndex + 2] = color;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user