mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
66a0421803
@ -28,6 +28,7 @@ namespace Spine.Unity.MeshGeneration {
|
||||
MeshAndMaterials GenerateMesh (ExposedList<SubmeshInstruction> instructions, int startSubmesh, int endSubmesh);
|
||||
|
||||
float ZSpacing { get; set; }
|
||||
bool PremultiplyVertexColors { get; set; }
|
||||
bool AddNormals { get; set; }
|
||||
bool AddTangents { get; set; }
|
||||
}
|
||||
|
||||
@ -137,6 +137,7 @@ namespace Spine.Unity.Modules {
|
||||
var currentRenderer = partsRenderers[rendererIndex];
|
||||
bool addNormals = skeletonRenderer.calculateNormals;
|
||||
bool addTangents = skeletonRenderer.calculateTangents;
|
||||
bool pmaVertexColors = skeletonRenderer.pmaVertexColors;
|
||||
|
||||
for (int si = 0, start = 0; si <= lastSubmeshInstruction; si++) {
|
||||
if (submeshInstructionsItems[si].forceSeparate || si == lastSubmeshInstruction) {
|
||||
@ -144,6 +145,7 @@ namespace Spine.Unity.Modules {
|
||||
var meshGenerator = currentRenderer.MeshGenerator;
|
||||
meshGenerator.AddNormals = addNormals;
|
||||
meshGenerator.AddTangents = addTangents;
|
||||
meshGenerator.PremultiplyVertexColors = pmaVertexColors;
|
||||
if (copyPropertyBlock)
|
||||
currentRenderer.SetPropertyBlock(copiedBlock);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user