Multiple Sprites To Same Shader

Hi Guys,

I am very new to unity and was playing around with it. I wanted to make a small shader which takes two texture with different Texture coordinates. I wanted to apply this shader to SpriteRenderer to achieve various kinds of effects for example masking. Can any one tell me the best way to achieve this.

Thanks
Rahul

If you need different texture coordinates, you have to setup first uv channel and scecond uv channel.
If you just need different “Tiling” and “Offset” for two textures, a custom shader could solve your problem.

Thanks for the reply but when i apply one sprite to the custom shader , the uv mapping is done by unity itself.i didnt write any custom code to pass the right uv values, do i need to manually pass different uv values by myself? if so do you have any link to a small tutorial which can help me to pass different uv for different textures.