浏览代码

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

Vadim Goncharov 1 年之前
父节点
当前提交
43d2564b0a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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];
 
 		this.tint = SlotMesh.auxColor;
+		this.alpha = SlotMesh.auxColor[3];
 		this.blendMode = SpineTexture.toPixiBlending(slotBlendMode);
 
 		if (this.geometry.indexBuffer.data.length !== finalIndices.length) {