[Shader/Effect] How do I find a sprite's position in the atlas?

Hi all!

I am using Cocos Creator version 3.8.8.

I placed several sprites on the scene. Each sprite is stored in a separate file, meaning it’s represented in a UV range from (0, 0) to (1, 1). Result without shader:

Now I’ll do something in the shader and get:

Everything is as I wanted. Next, I’ll pack the used sprites into an atlas and leave the shader unchanged. The result:

So, the question is: how can I find out in the shader which area a sprite is located in the atlas?