How to apply a vertex mask to a sprite shader in Shader Graph?

Could someone give me some advice on how to remap a vertex mask to the actual vertex positions of a mesh in a sprite shader? What I have here (in the attached image) DOES work - as long as we don’t use sprites from an atlas. What happens is that the vertex mask ends up getting the same pixel positions from its texture, as the sprite does from the sprite atlas. What I need to do is have the vertex mask use the UV positions INSTEAD OF the pixel positions. I’m a bit lost on how to do that in shader graph…

Got it! Have to pass in the vertex positions to the UV of the vertex mask texture!

Can you get me example? Please.

In ShaderGraph, just create a Vertex Position node, and a UV node, then pass the Vertex Position into the UV Node, then use that UV node for the UV of the mask texture.

Thanx for fast answer, but i don’t know how do this. I create 2 node: “Position” and “UV”. How i can pass Position into the UV Node? UV node don’t have input slot.

My bad - just pass the Position directly into the UV for the Sample Texture.

It’s WORK! Thanx!