Use shader for spine animation

I want to use shader to draw circle on spine animation (result of animtion after render) without using texture renderer, but in shader uv0 it calculates on atlas so the result is not as expected. Can anyone help me?

Hi, if you want to get the UV data in spine’s atlas, you need to refer to the (engine source code) spine animation when submitting the data.

Where can I find it in the source code? What I need is to get the uv of the animation render result, i am using cocos creator 2.1.3. Thank u.

Unfortunately, the github source code for creator version 2.1.3 has been removed from maintenance, so I can’t directly point you to the source code you need.
Recommended: You can use the visual studio code tool to view the engine source code for the creator you are using, hope it works for you!

Can you point me on the latest 2.4.x? I will upgrade my game later

You can refer to the source code for this section of 2.4.11

1 Like