[unity] Fix SkeletonGraphic not applying PMA to vertex colors.

This commit is contained in:
pharan 2016-08-27 11:38:22 +08:00
parent 4340e58518
commit c9ffdc7eae
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
float Scale { set; }
float ZSpacing { get; set; }
bool PremultiplyVertexColors { get; set; }
bool AddNormals { get; set; }
bool AddTangents { get; set; }

View File

@ -189,6 +189,7 @@ namespace Spine.Unity {
this.skeleton = new Skeleton(skeletonData);
this.spineMeshGenerator = new Spine.Unity.MeshGeneration.ArraysSimpleMeshGenerator(); // You can switch this out with any other implementer of Spine.Unity.MeshGeneration.ISimpleMeshGenerator
this.spineMeshGenerator.PremultiplyVertexColors = true;
// Set the initial Skin and Animation
if (!string.IsNullOrEmpty(initialSkinName))