Hi guys,
I've been reading on how to mask textures on the forum and outside it using opengl and I had no luck to achieve my goal whatsoever.
This is what I'm trying to do: I have a background sprite of a car and I want to add "paint-splash" sprites when the user throws some paint bucket to the car.
The problem comes when I want to crop the splash sprites in a way that they only show the area that falls into the car shape.
I've been trying to use a polygon with the shape of the car to mask each sprite and I've also tried creating a mask image of the car as a negative (black and white). However, in either case I can't just use the mask to crop the splash sprite without seeing the actual mask add it to the texture (as a blend).
I've been playing around with RenderTexture, glColorMask, glBlendFunc and alpha channels, but I virtually know nothing on opengles which is not helping me much, so any help or new pointer would be appreciated!
Thanks