mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 14:54:53 +08:00
[unity] Fix SkeletonGraphic not applying PMA to vertex colors.
This commit is contained in:
parent
4340e58518
commit
c9ffdc7eae
@ -9,6 +9,7 @@
|
||||
|
||||
float Scale { set; }
|
||||
float ZSpacing { get; set; }
|
||||
bool PremultiplyVertexColors { get; set; }
|
||||
|
||||
bool AddNormals { get; set; }
|
||||
bool AddTangents { get; set; }
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user