Forráskód Böngészése

[ts][pixi] Fix not working alpha channel in mesh animations (#2439)

Vadim Goncharov 1 éve
szülő
commit
43d2564b0a
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      spine-ts/spine-pixi/src/SlotMesh.ts

+ 1 - 0
spine-ts/spine-pixi/src/SlotMesh.ts

@@ -99,6 +99,7 @@ export class SlotMesh extends Mesh implements ISlotMesh {
 		SlotMesh.auxColor[3] = finalVertices[5];
 		SlotMesh.auxColor[3] = finalVertices[5];
 
 
 		this.tint = SlotMesh.auxColor;
 		this.tint = SlotMesh.auxColor;
+		this.alpha = SlotMesh.auxColor[3];
 		this.blendMode = SpineTexture.toPixiBlending(slotBlendMode);
 		this.blendMode = SpineTexture.toPixiBlending(slotBlendMode);
 
 
 		if (this.geometry.indexBuffer.data.length !== finalIndices.length) {
 		if (this.geometry.indexBuffer.data.length !== finalIndices.length) {