Dudes which approach is more efficient for mobile devices
There is a rectangle mask. I want to render a different sprite inside the mask and outside, it should render the normal sprite.
1 Render the normal sprite and write a custom alpha test shader to clip based on the rectangle.
2 Render the normal sprite and write a custom alpha blending shader to show/hide pixels based on the rectangle.
3 Use the stencil buffer, unity sprite mask for example