swunield

Did any one know how to use Spine with texture format etc1+alpha in Unity, plz help, thanks
swunield
Posts: 2

Pharan

Spine-Unity just generates a mesh and uses a Material to render it.
As long as your material settings are coherent, it should render fine.

Is there something special about ETC1+Alpha where it might not be that simple?
User avatar
Pharan

Pharan
Posts: 4427

icepowier2012

Pharan wrote:Spine-Unity just generates a mesh and uses a Material to render it.
As long as your material settings are coherent, it should render fine.

Is there something special about ETC1+Alpha where it might not be that simple?
"ETC1 is part of OpenGL ES 2.0 and is supported by all OpenGL ES 2.0 GPUs. But ETC1 does not support alpha channel. "
https://www.assetstore.unity3d.com/cn/#!/content/23722

Have this function already added in 3.6?
https://github.com/EsotericSoftware/spine-runtimes/pull/877
icepowier2012
Posts: 2

Pharan

Spine-Unity just generates a mesh and uses a Material to render it.
As long as your material settings are coherent, it should render fine.

If it requires you to set something manually on the Material, you should do that. And it should work fine. The Spine runtime shouldn't really care.
Note that if it's a straight alpha, you may have to disable "Premultiply Alpha" under "Advanced" on each SkeletonAnimation. It will be disabled by default if you don't use any of the default Spine shaders.
User avatar
Pharan

Pharan
Posts: 4427


Return to Unity