sswift #1 If they're textures, you could probably read pixels from the texture until you found one with alpha 0, and the color of that pixel is your mask color.