In Unity, especially in UIPanel, there is a feature to do clipping (Hard clipping, soft clipping, and alpha clipping). But all of them are based on rectangular shape. So the bound is rectangle. What I want is to make clipping with bound/shape polygon. Can I achieve that? I thought I have to write my custom shader, but unfortunately I am a newbie in Unity. So can someone give me a hint the logical step of those steps? I dont know where to start.
I attached the effect clip I want.
The left, is without clipping. And the right is with clipping. The star is a parent which has some clipping shader. And the child inside it will be clipped with the parent's bound.
Thank you