How to mask/clipping a sprite?

I’m dropping my test project here. Maybe someone want to take a look.
It is based on Britzl’s Simple 2D Lights example.
There are two different approchs: one with using single quad with render targets and one with just using quads and materials. They cause x2 performance drop on actual mobile device and I don’t know how to improve it anymore. So I’m not planning to use them.

sprite-mask-test.zip (222.4 KB)

1 Like