I have a texture and when I draw a line over the texture, the intersecting pixels become transparent. However, now I want to create two separate textures by splitting the texture in 2 by the transparent pixels. I've been thinking really hard for the last couple of days but even if I do come up with something, a horizontal or vertical line messes things up. And I'm not really good at math, maybe there is something I could use in "Mathf" class but I don't know. Any ideas?