我们确实对spine-ts画布中的网格有了实际的支持。 您可以通过将SkeletonRenderer.useTriangleRendering
设置为true
来启用它。 但是,它是一个实验性功能,速度极慢,并且在某些浏览器上存在伪影。 这是Canvas API的限制,它不支持渲染任意三角形网格。 我强烈建议使用spine-ts WebGL或pixi.js.
We do have exprimental support for meshes in spine-ts canvas. You can enable it by setting SkeletonRenderer.useTriangleRendering
to true
. However, it is an experimental feature, extremely slow, and has artifacts on some browsers. This is a limitation of the Canvas API, which does not support rendering arbitrary triangle meshes. I highly recommend using spine-ts WebGL or pixi.js.