Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3979

Inverse Masking

$
0
0

Hey guys, I've trawled through google, here and the github repo but couldn't find a good way to perform an inverse mask. I need the mask to be applied on every rAF, so generating a new canvas and re-uploading the texture to the GPU and rendering is going to be to expensive I think.

I've read that this is very easy to do in WebGL, but I would like to keep canvas fallback if possible. 

I already have a mask texture that I want to apply, but obviously it's being used as a normal mask. Are there any good performant solutions for this?


Viewing all articles
Browse latest Browse all 3979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>