I'm using Ai and I'm trying to make an object -suppose a simple rectangle- with two different fill colors. One color is above and would be textured by an opacity mask so the second color would be seen through the first color. I can achieve a similar result by placing another rectangle with the desired color underneath the first one, and simply apply my texture to the top rectangle so the second color -or the second rectangle- would be seen underneath it. But I'm wondered if there is a way to have this result with only one object? I've tried to do it by applying opacity mask to different fills of my rectangle but whenever I add an opacity mask to only one fill, it will automatically be applied to all the object and its fills, I don't know why it does happen since in the Appearance panel we should be able to add different effects and opacity masks to separate fills, but it looks like it's useless, applying one opacity mask to one fill would make it applied to all the fills and the object overall. Any advice?
I want to achieve something like this. The pink fill would be seen underneath the blue textured fill.