[Effect/Shader] How to post-process Spine animation?

Hi all!

I am using Cocos Creator version 3.8.8.

Look, let’s take a picture like this:

Let’s imagine that this is an atlas for Spine, and the Skeleton itself looks like this:

I can attach some material to this Skeleton, and in it, in turn, indicate some effect written by me.

The result will be that this effect will be applied 4 times, let’s say to each Skeleton sprite.

First, in this case, I’d like to somehow find out in the shader where in the atlas I’m currently working. Is there a way to get this data? So, let’s say I’m rendering another sprite from the atlas for Skeleton, and in the shader, I know that this fragment lies between (u1, v1) and (u2, v2) along the UV map. Is there a way to get this?

Secondly, it’s important for me to be able to perform post-processing after all four figures have been rendered, without affecting any other elements on the screen. How can this be accomplished? Perhaps I need to adjust the passes somehow.

I hope this can be done. I’m looking at the Label and I see that shadow output is not possible when CHAR caching mode is enabled.