New to PIXI. I have a text, masked by an image. I need to add displacement filer on the image only, but not affecting the text. At the moment, it is affecting the text, but this is not the result I am wanting. Anyone know how to just have the displacement on the image?
You have to render image with displacement into renderTexture, make a sprite out of it and use it as a mask. Also you have to ren-render it every time you change something in displacement.
I'll target this and other cases in future filters update.
One more possible solution:
Thanks @ivanpopelyshev
I will try your solution.
I just randomly tried something on my side, and it does what I want. Probably not the best way though, http://codepen.io/joshuaeelee/pen/aJJRxB (updated)
Well, that works too :)
It works because it doesnt matter which texture of two is a mask, you can reverse order. May be something wrong will happen with alpha, but I believe that it can be solved too.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.