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

how to use graphics as inverse mask?

$
0
0

Hi, I am trying to get a graphics mask to behave as inverse mask.

I know I can convert a graphics mask to a sprite mask, with generatetexture and use alpha masking, but that conversion process is too slow.

 

How can I use graphics mask directly as an inverse mask?

I saw here https://github.com/pixijs/pixijs/issues/252 , in pixi.js from 2013 that it was possible by changing a certain line in webglrendergroup.js, but it seems pixi.js version is different now in 2021.

Do you know what line or file I need to change now to get inverse masking?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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