Jump to content

how to use graphics as inverse mask?


thekayaker33
 Share

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...