mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 11:16: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 Scale { set; }
|
||||||
float ZSpacing { get; set; }
|
float ZSpacing { get; set; }
|
||||||
|
bool PremultiplyVertexColors { get; set; }
|
||||||
|
|
||||||
bool AddNormals { get; set; }
|
bool AddNormals { get; set; }
|
||||||
bool AddTangents { get; set; }
|
bool AddTangents { get; set; }
|
||||||
|
|||||||
@ -189,6 +189,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
this.skeleton = new Skeleton(skeletonData);
|
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 = 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
|
// Set the initial Skin and Animation
|
||||||
if (!string.IsNullOrEmpty(initialSkinName))
|
if (!string.IsNullOrEmpty(initialSkinName))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user