ChenXin

Only apply AdvancedBloomFilter to the colored pixel

Recommended Posts

I am trying to apply AdvancedBloomFilter to a sprite, but now the filter is applied to the entire sprite(even the transparent pixel).

Is there any way to just apply the AdvancedBloomFilter to the colored pixels?

 

Share this post


Link to post
Share on other sites

AdvancedBloomFilter is a multi-pass filter, you have to go inside it and modify it that way in last step it . If you are not ready to dig into filters, shaders and the harder part - multi-pass filters - dont go there.

As for why bloom and other filters are applied to transparent too - that's how it works everywhere.

Workaround without direct usage of custom filter: render container into renderTexture, apply bloomFilter to sprite and a mask it with itself. However you'll need to mask only alpha stuff , that's not included in pixi vanilla package - you'll have to modify SpriteMaskFilter anyway, I published workarounds before but i dont have time to search for them now.

If you explain why exactly do you need such thing and whether you are ready to wait when someone does it, we can think of something :)

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.