소스 검색

Fixed slot alpha blending in spine-unity.

NathanSweet 12 년 전
부모
커밋
2a480de598
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs

+ 3 - 3
spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs

@@ -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;