Jump to content

is there a way to render a texture with alpha cutoff?


jpdev
 Share

Recommended Posts

Is there a way in pixijs to do the following:

 

Render sprites with alpha values in the range of 0 to 1 to an offscreen texture, then rendering this texture to screen with alpha cutoff.

 

Meaning, that only the parts where alpha is above 0.x are drawn to screen (with alpha 1.0) and the rest of the pixels with alpha >= 0.x are left completly transparent?

 

I have tried to google for pixijs and alpha cutoff, but found nothing. (Also checking the pixi help for alphaCutoff didn't get me anyware.)

It possibly has a different name?

 

Thanks for your help,

JP

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...